google-apis-compute_preview 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/compute_preview/classes.rb +1581 -179
- data/lib/google/apis/compute_preview/gem_version.rb +3 -3
- data/lib/google/apis/compute_preview/representations.rb +516 -0
- data/lib/google/apis/compute_preview/service.rb +3592 -453
- metadata +2 -2
|
@@ -1489,6 +1489,249 @@ module Google
|
|
|
1489
1489
|
execute_or_queue_command(command, &block)
|
|
1490
1490
|
end
|
|
1491
1491
|
|
|
1492
|
+
# Deletes the specified AliasNetworkEndpoint.
|
|
1493
|
+
# @param [String] project
|
|
1494
|
+
# Required. Project ID for this request.
|
|
1495
|
+
# @param [String] zone
|
|
1496
|
+
# Required. Name of the zone scoping this request.
|
|
1497
|
+
# @param [String] alias_network_endpoint
|
|
1498
|
+
# Required. Name of the AliasNetworkEndpoint resource to delete.
|
|
1499
|
+
# @param [String] request_id
|
|
1500
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1501
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1502
|
+
# request if it has already been completed.
|
|
1503
|
+
# @param [String] fields
|
|
1504
|
+
# Selector specifying which fields to include in a partial response.
|
|
1505
|
+
# @param [String] quota_user
|
|
1506
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1507
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1508
|
+
# @param [String] user_ip
|
|
1509
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
1510
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1511
|
+
# Request-specific options
|
|
1512
|
+
#
|
|
1513
|
+
# @yield [result, err] Result & error if block supplied
|
|
1514
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
1515
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1516
|
+
#
|
|
1517
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
1518
|
+
#
|
|
1519
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1520
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1521
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1522
|
+
def delete_alias_network_endpoint(project, zone, alias_network_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1523
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints/{aliasNetworkEndpoint}', options)
|
|
1524
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
1525
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
1526
|
+
command.params['project'] = project unless project.nil?
|
|
1527
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1528
|
+
command.params['aliasNetworkEndpoint'] = alias_network_endpoint unless alias_network_endpoint.nil?
|
|
1529
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
1530
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1531
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1532
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1533
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
1534
|
+
execute_or_queue_command(command, &block)
|
|
1535
|
+
end
|
|
1536
|
+
|
|
1537
|
+
# Returns the specified AliasNetworkEndpoint resource.
|
|
1538
|
+
# @param [String] project
|
|
1539
|
+
# Required. Project ID for this request.
|
|
1540
|
+
# @param [String] zone
|
|
1541
|
+
# Required. Name of the zone scoping this request.
|
|
1542
|
+
# @param [String] alias_network_endpoint
|
|
1543
|
+
# Required. Name of the AliasNetworkEndpoint resource to return.
|
|
1544
|
+
# @param [String] fields
|
|
1545
|
+
# Selector specifying which fields to include in a partial response.
|
|
1546
|
+
# @param [String] quota_user
|
|
1547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1549
|
+
# @param [String] user_ip
|
|
1550
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
1551
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1552
|
+
# Request-specific options
|
|
1553
|
+
#
|
|
1554
|
+
# @yield [result, err] Result & error if block supplied
|
|
1555
|
+
# @yieldparam result [Google::Apis::ComputePreview::AliasNetworkEndpoint] parsed result object
|
|
1556
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1557
|
+
#
|
|
1558
|
+
# @return [Google::Apis::ComputePreview::AliasNetworkEndpoint]
|
|
1559
|
+
#
|
|
1560
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1561
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1562
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1563
|
+
def get_alias_network_endpoint(project, zone, alias_network_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1564
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints/{aliasNetworkEndpoint}', options)
|
|
1565
|
+
command.response_representation = Google::Apis::ComputePreview::AliasNetworkEndpoint::Representation
|
|
1566
|
+
command.response_class = Google::Apis::ComputePreview::AliasNetworkEndpoint
|
|
1567
|
+
command.params['project'] = project unless project.nil?
|
|
1568
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1569
|
+
command.params['aliasNetworkEndpoint'] = alias_network_endpoint unless alias_network_endpoint.nil?
|
|
1570
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1572
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1573
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
1574
|
+
execute_or_queue_command(command, &block)
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
# Creates an AliasNetworkEndpoint in the specified project and zone
|
|
1578
|
+
# using the data included in the request.
|
|
1579
|
+
# @param [String] project
|
|
1580
|
+
# Required. Project ID for this request.
|
|
1581
|
+
# @param [String] zone
|
|
1582
|
+
# Required. Name of the zone scoping this request.
|
|
1583
|
+
# @param [Google::Apis::ComputePreview::AliasNetworkEndpoint] alias_network_endpoint_object
|
|
1584
|
+
# @param [String] request_id
|
|
1585
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
1586
|
+
# that if you must retry your request, the server will know to ignore the
|
|
1587
|
+
# request if it has already been completed.
|
|
1588
|
+
# @param [String] fields
|
|
1589
|
+
# Selector specifying which fields to include in a partial response.
|
|
1590
|
+
# @param [String] quota_user
|
|
1591
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1592
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1593
|
+
# @param [String] user_ip
|
|
1594
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
1595
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1596
|
+
# Request-specific options
|
|
1597
|
+
#
|
|
1598
|
+
# @yield [result, err] Result & error if block supplied
|
|
1599
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
1600
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1601
|
+
#
|
|
1602
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
1603
|
+
#
|
|
1604
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1605
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1606
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1607
|
+
def insert_alias_network_endpoint(project, zone, alias_network_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1608
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints', options)
|
|
1609
|
+
command.request_representation = Google::Apis::ComputePreview::AliasNetworkEndpoint::Representation
|
|
1610
|
+
command.request_object = alias_network_endpoint_object
|
|
1611
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
1612
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
1613
|
+
command.params['project'] = project unless project.nil?
|
|
1614
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1615
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
1616
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1618
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1619
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
1620
|
+
execute_or_queue_command(command, &block)
|
|
1621
|
+
end
|
|
1622
|
+
|
|
1623
|
+
# Retrieves a list of AliasNetworkEndpoints available to the specified
|
|
1624
|
+
# project.
|
|
1625
|
+
# @param [String] project
|
|
1626
|
+
# Required. Project ID for this request.
|
|
1627
|
+
# @param [String] zone
|
|
1628
|
+
# Required. Name of the zone of this request.
|
|
1629
|
+
# @param [String] filter
|
|
1630
|
+
# A filter expression that filters resources listed in the response. Most
|
|
1631
|
+
# Compute resources support two types of filter expressions:
|
|
1632
|
+
# expressions that support regular expressions and expressions that follow
|
|
1633
|
+
# API improvement proposal AIP-160.
|
|
1634
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
1635
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
1636
|
+
# operator, and the value that you want to use for filtering. The value
|
|
1637
|
+
# must be a string, a number, or a boolean. The operator
|
|
1638
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
1639
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
1640
|
+
# exclude instances named `example-instance` by specifying
|
|
1641
|
+
# `name != example-instance`.
|
|
1642
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
1643
|
+
# For example, to find all objects with `owner` label use:
|
|
1644
|
+
# ```
|
|
1645
|
+
# labels.owner:*
|
|
1646
|
+
# ```
|
|
1647
|
+
# You can also filter nested fields. For example, you could specify
|
|
1648
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
1649
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
1650
|
+
# on nested fields to filter based onresource labels.
|
|
1651
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
1652
|
+
# parentheses. For example:
|
|
1653
|
+
# ```
|
|
1654
|
+
# (scheduling.automaticRestart = true)
|
|
1655
|
+
# (cpuPlatform = "Intel Skylake")
|
|
1656
|
+
# ```
|
|
1657
|
+
# By default, each expression is an `AND` expression. However, you
|
|
1658
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
1659
|
+
# For example:
|
|
1660
|
+
# ```
|
|
1661
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
1662
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
1663
|
+
# (scheduling.automaticRestart = true)
|
|
1664
|
+
# ```
|
|
1665
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
1666
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
1667
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
1668
|
+
# `fieldname eq unquoted literal`
|
|
1669
|
+
# `fieldname eq 'single quoted literal'`
|
|
1670
|
+
# `fieldname eq "double quoted literal"`
|
|
1671
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
1672
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
1673
|
+
# library syntax.
|
|
1674
|
+
# The literal value must match the entire field.
|
|
1675
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
1676
|
+
# you would use `name ne .*instance`.
|
|
1677
|
+
# You cannot combine constraints on multiple fields using regular
|
|
1678
|
+
# expressions.
|
|
1679
|
+
# @param [Fixnum] max_results
|
|
1680
|
+
# The maximum number of results per page that should be returned.
|
|
1681
|
+
# If the number of available results is larger than `maxResults`,
|
|
1682
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
1683
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
1684
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
1685
|
+
# @param [String] order_by
|
|
1686
|
+
# Sorts list results by a certain order. By default, results
|
|
1687
|
+
# are returned in alphanumerical order based on the resource name.
|
|
1688
|
+
# You can also sort results in descending order based on the creation
|
|
1689
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
1690
|
+
# results based on the `creationTimestamp` field in
|
|
1691
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
1692
|
+
# resources like operations so that the newest operation is returned first.
|
|
1693
|
+
# Currently, only sorting by `name` or
|
|
1694
|
+
# `creationTimestamp desc` is supported.
|
|
1695
|
+
# @param [String] page_token
|
|
1696
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
1697
|
+
# `nextPageToken` returned by a previous list request to get
|
|
1698
|
+
# the next page of results.
|
|
1699
|
+
# @param [String] fields
|
|
1700
|
+
# Selector specifying which fields to include in a partial response.
|
|
1701
|
+
# @param [String] quota_user
|
|
1702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1704
|
+
# @param [String] user_ip
|
|
1705
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
1706
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1707
|
+
# Request-specific options
|
|
1708
|
+
#
|
|
1709
|
+
# @yield [result, err] Result & error if block supplied
|
|
1710
|
+
# @yieldparam result [Google::Apis::ComputePreview::AliasNetworkEndpointList] parsed result object
|
|
1711
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1712
|
+
#
|
|
1713
|
+
# @return [Google::Apis::ComputePreview::AliasNetworkEndpointList]
|
|
1714
|
+
#
|
|
1715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1718
|
+
def list_alias_network_endpoints(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1719
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/aliasNetworkEndpoints', options)
|
|
1720
|
+
command.response_representation = Google::Apis::ComputePreview::AliasNetworkEndpointList::Representation
|
|
1721
|
+
command.response_class = Google::Apis::ComputePreview::AliasNetworkEndpointList
|
|
1722
|
+
command.params['project'] = project unless project.nil?
|
|
1723
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1724
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1725
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1726
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1727
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1728
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1729
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1730
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1731
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
1732
|
+
execute_or_queue_command(command, &block)
|
|
1733
|
+
end
|
|
1734
|
+
|
|
1492
1735
|
# Retrieves an aggregated list of autoscalers.
|
|
1493
1736
|
# To prevent failure, it is recommended that you set the
|
|
1494
1737
|
# `returnPartialSuccess` parameter to `true`.
|
|
@@ -7333,11 +7576,12 @@ module Google
|
|
|
7333
7576
|
execute_or_queue_command(command, &block)
|
|
7334
7577
|
end
|
|
7335
7578
|
|
|
7336
|
-
# Retrieves
|
|
7337
|
-
#
|
|
7579
|
+
# Retrieves the list of all folder level VM Extension Policy resources
|
|
7580
|
+
# available to the specified folder.
|
|
7581
|
+
# To prevent failure, it's recommended that you set the
|
|
7338
7582
|
# `returnPartialSuccess` parameter to `true`.
|
|
7339
|
-
# @param [String]
|
|
7340
|
-
#
|
|
7583
|
+
# @param [String] folder
|
|
7584
|
+
# Folder ID for this request.
|
|
7341
7585
|
# @param [String] filter
|
|
7342
7586
|
# A filter expression that filters resources listed in the response. Most
|
|
7343
7587
|
# Compute resources support two types of filter expressions:
|
|
@@ -7430,19 +7674,19 @@ module Google
|
|
|
7430
7674
|
# Request-specific options
|
|
7431
7675
|
#
|
|
7432
7676
|
# @yield [result, err] Result & error if block supplied
|
|
7433
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
7677
|
+
# @yieldparam result [Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse] parsed result object
|
|
7434
7678
|
# @yieldparam err [StandardError] error object if request failed
|
|
7435
7679
|
#
|
|
7436
|
-
# @return [Google::Apis::ComputePreview::
|
|
7680
|
+
# @return [Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse]
|
|
7437
7681
|
#
|
|
7438
7682
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7439
7683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7440
7684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7441
|
-
def
|
|
7442
|
-
command = make_simple_command(:get, '
|
|
7443
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
7444
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
7445
|
-
command.params['
|
|
7685
|
+
def aggregated_folder_global_vm_extension_policy_list(folder, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7686
|
+
command = make_simple_command(:get, '{+folder}/aggregated/vmExtensionPolicies', options)
|
|
7687
|
+
command.response_representation = Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse::Representation
|
|
7688
|
+
command.response_class = Google::Apis::ComputePreview::FolderVmExtensionPolicyAggregatedListResponse
|
|
7689
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7446
7690
|
command.query['filter'] = filter unless filter.nil?
|
|
7447
7691
|
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
7448
7692
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -7456,13 +7700,17 @@ module Google
|
|
|
7456
7700
|
execute_or_queue_command(command, &block)
|
|
7457
7701
|
end
|
|
7458
7702
|
|
|
7459
|
-
#
|
|
7460
|
-
#
|
|
7461
|
-
#
|
|
7462
|
-
#
|
|
7463
|
-
#
|
|
7464
|
-
#
|
|
7465
|
-
#
|
|
7703
|
+
# Purge scoped resources (zonal policies) from a folder level global
|
|
7704
|
+
# VM extension policy, and then delete the global VM extension policy. Purge
|
|
7705
|
+
# of the scoped resources is a pre-condition of the global VM extension
|
|
7706
|
+
# policy deletion. The deletion of the global VM extension policy happens
|
|
7707
|
+
# after the purge rollout is done, so it's not a part of the LRO. It's an
|
|
7708
|
+
# automatic process that triggers in the backend.
|
|
7709
|
+
# @param [String] folder
|
|
7710
|
+
# Folder ID for this request.
|
|
7711
|
+
# @param [String] global_vm_extension_policy
|
|
7712
|
+
# Name of the global VM extension policy to purge scoped resources for.
|
|
7713
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
7466
7714
|
# @param [String] request_id
|
|
7467
7715
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
7468
7716
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -7494,13 +7742,14 @@ module Google
|
|
|
7494
7742
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7495
7743
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7496
7744
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7497
|
-
def
|
|
7498
|
-
command = make_simple_command(:
|
|
7745
|
+
def delete_folder_global_vm_extension_policy(folder, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7746
|
+
command = make_simple_command(:post, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
|
|
7747
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
|
|
7748
|
+
command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
7499
7749
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
7500
7750
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
7501
|
-
command.params['
|
|
7502
|
-
command.params['
|
|
7503
|
-
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
|
7751
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7752
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
7504
7753
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
7505
7754
|
command.query['fields'] = fields unless fields.nil?
|
|
7506
7755
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -7509,14 +7758,11 @@ module Google
|
|
|
7509
7758
|
execute_or_queue_command(command, &block)
|
|
7510
7759
|
end
|
|
7511
7760
|
|
|
7512
|
-
#
|
|
7513
|
-
# @param [String]
|
|
7514
|
-
#
|
|
7515
|
-
# @param [String]
|
|
7516
|
-
# Name of the
|
|
7517
|
-
# @param [String] forwarding_rule
|
|
7518
|
-
# Name of the ForwardingRule resource to return.
|
|
7519
|
-
# @param [String] view
|
|
7761
|
+
# Gets details of a folder level GlobalVmExtensionPolicy.
|
|
7762
|
+
# @param [String] folder
|
|
7763
|
+
# Folder ID for this request.
|
|
7764
|
+
# @param [String] global_vm_extension_policy
|
|
7765
|
+
# Name of the GlobalVmExtensionPolicy resource to return.
|
|
7520
7766
|
# @param [String] fields
|
|
7521
7767
|
# Selector specifying which fields to include in a partial response.
|
|
7522
7768
|
# @param [String] quota_user
|
|
@@ -7528,22 +7774,20 @@ module Google
|
|
|
7528
7774
|
# Request-specific options
|
|
7529
7775
|
#
|
|
7530
7776
|
# @yield [result, err] Result & error if block supplied
|
|
7531
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
7777
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
|
|
7532
7778
|
# @yieldparam err [StandardError] error object if request failed
|
|
7533
7779
|
#
|
|
7534
|
-
# @return [Google::Apis::ComputePreview::
|
|
7780
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
|
|
7535
7781
|
#
|
|
7536
7782
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7537
7783
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7538
7784
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7539
|
-
def
|
|
7540
|
-
command = make_simple_command(:get, '
|
|
7541
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
7542
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
7543
|
-
command.params['
|
|
7544
|
-
command.params['
|
|
7545
|
-
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
|
7546
|
-
command.query['view'] = view unless view.nil?
|
|
7785
|
+
def get_folder_global_vm_extension_policy(folder, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7786
|
+
command = make_simple_command(:get, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
7787
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
7788
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
|
|
7789
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7790
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
7547
7791
|
command.query['fields'] = fields unless fields.nil?
|
|
7548
7792
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7549
7793
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -7551,13 +7795,1053 @@ module Google
|
|
|
7551
7795
|
execute_or_queue_command(command, &block)
|
|
7552
7796
|
end
|
|
7553
7797
|
|
|
7554
|
-
#
|
|
7555
|
-
#
|
|
7556
|
-
#
|
|
7557
|
-
#
|
|
7558
|
-
#
|
|
7559
|
-
#
|
|
7560
|
-
#
|
|
7798
|
+
# Retrieves details of a specific VM extension.
|
|
7799
|
+
# @param [String] folder
|
|
7800
|
+
# Folder ID for this request.
|
|
7801
|
+
# @param [String] extension_name
|
|
7802
|
+
# Required. Name of the VM extension for this request.
|
|
7803
|
+
# @param [String] fields
|
|
7804
|
+
# Selector specifying which fields to include in a partial response.
|
|
7805
|
+
# @param [String] quota_user
|
|
7806
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7807
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7808
|
+
# @param [String] user_ip
|
|
7809
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
7810
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7811
|
+
# Request-specific options
|
|
7812
|
+
#
|
|
7813
|
+
# @yield [result, err] Result & error if block supplied
|
|
7814
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
|
|
7815
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7816
|
+
#
|
|
7817
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtension]
|
|
7818
|
+
#
|
|
7819
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7820
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7821
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7822
|
+
def get_folder_global_vm_extension_policy_vm_extension(folder, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7823
|
+
command = make_simple_command(:get, '{+folder}/global/vmExtensions/{extensionName}', options)
|
|
7824
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
|
|
7825
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
|
|
7826
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7827
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
7828
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7830
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7831
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
7832
|
+
execute_or_queue_command(command, &block)
|
|
7833
|
+
end
|
|
7834
|
+
|
|
7835
|
+
# Creates a new folder level GlobalVmExtensionPolicy.
|
|
7836
|
+
# @param [String] folder
|
|
7837
|
+
# Folder ID for this request.
|
|
7838
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
7839
|
+
# @param [String] request_id
|
|
7840
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
7841
|
+
# that if you must retry your request, the server will know to ignore the
|
|
7842
|
+
# request if it has already been completed.
|
|
7843
|
+
# For example, consider a situation where you make an initial request and
|
|
7844
|
+
# the request times out. If you make the request again with the same
|
|
7845
|
+
# request ID, the server can check if original operation with the same
|
|
7846
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
7847
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
7848
|
+
# The request ID must be
|
|
7849
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
7850
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
7851
|
+
# @param [String] fields
|
|
7852
|
+
# Selector specifying which fields to include in a partial response.
|
|
7853
|
+
# @param [String] quota_user
|
|
7854
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7855
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7856
|
+
# @param [String] user_ip
|
|
7857
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
7858
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7859
|
+
# Request-specific options
|
|
7860
|
+
#
|
|
7861
|
+
# @yield [result, err] Result & error if block supplied
|
|
7862
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
7863
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7864
|
+
#
|
|
7865
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
7866
|
+
#
|
|
7867
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7868
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7869
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7870
|
+
def insert_folder_global_vm_extension_policy(folder, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7871
|
+
command = make_simple_command(:post, '{+folder}/global/vmExtensionPolicies', options)
|
|
7872
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
7873
|
+
command.request_object = global_vm_extension_policy_object
|
|
7874
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
7875
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
7876
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7877
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
7878
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7879
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7880
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7881
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
7882
|
+
execute_or_queue_command(command, &block)
|
|
7883
|
+
end
|
|
7884
|
+
|
|
7885
|
+
# Lists folder level GlobalVmExtensionPolicies.
|
|
7886
|
+
# @param [String] folder
|
|
7887
|
+
# Folder ID for this request.
|
|
7888
|
+
# @param [String] filter
|
|
7889
|
+
# A filter expression that filters resources listed in the response. Most
|
|
7890
|
+
# Compute resources support two types of filter expressions:
|
|
7891
|
+
# expressions that support regular expressions and expressions that follow
|
|
7892
|
+
# API improvement proposal AIP-160.
|
|
7893
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
7894
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
7895
|
+
# operator, and the value that you want to use for filtering. The value
|
|
7896
|
+
# must be a string, a number, or a boolean. The operator
|
|
7897
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
7898
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
7899
|
+
# exclude instances named `example-instance` by specifying
|
|
7900
|
+
# `name != example-instance`.
|
|
7901
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
7902
|
+
# For example, to find all objects with `owner` label use:
|
|
7903
|
+
# ```
|
|
7904
|
+
# labels.owner:*
|
|
7905
|
+
# ```
|
|
7906
|
+
# You can also filter nested fields. For example, you could specify
|
|
7907
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
7908
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
7909
|
+
# on nested fields to filter based onresource labels.
|
|
7910
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
7911
|
+
# parentheses. For example:
|
|
7912
|
+
# ```
|
|
7913
|
+
# (scheduling.automaticRestart = true)
|
|
7914
|
+
# (cpuPlatform = "Intel Skylake")
|
|
7915
|
+
# ```
|
|
7916
|
+
# By default, each expression is an `AND` expression. However, you
|
|
7917
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
7918
|
+
# For example:
|
|
7919
|
+
# ```
|
|
7920
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
7921
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
7922
|
+
# (scheduling.automaticRestart = true)
|
|
7923
|
+
# ```
|
|
7924
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
7925
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
7926
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
7927
|
+
# `fieldname eq unquoted literal`
|
|
7928
|
+
# `fieldname eq 'single quoted literal'`
|
|
7929
|
+
# `fieldname eq "double quoted literal"`
|
|
7930
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
7931
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
7932
|
+
# library syntax.
|
|
7933
|
+
# The literal value must match the entire field.
|
|
7934
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
7935
|
+
# you would use `name ne .*instance`.
|
|
7936
|
+
# You cannot combine constraints on multiple fields using regular
|
|
7937
|
+
# expressions.
|
|
7938
|
+
# @param [Fixnum] max_results
|
|
7939
|
+
# The maximum number of results per page that should be returned.
|
|
7940
|
+
# If the number of available results is larger than `maxResults`,
|
|
7941
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
7942
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
7943
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
7944
|
+
# @param [String] order_by
|
|
7945
|
+
# Sorts list results by a certain order. By default, results
|
|
7946
|
+
# are returned in alphanumerical order based on the resource name.
|
|
7947
|
+
# You can also sort results in descending order based on the creation
|
|
7948
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
7949
|
+
# results based on the `creationTimestamp` field in
|
|
7950
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
7951
|
+
# resources like operations so that the newest operation is returned first.
|
|
7952
|
+
# Currently, only sorting by `name` or
|
|
7953
|
+
# `creationTimestamp desc` is supported.
|
|
7954
|
+
# @param [String] page_token
|
|
7955
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
7956
|
+
# `nextPageToken` returned by a previous list request to get
|
|
7957
|
+
# the next page of results.
|
|
7958
|
+
# @param [String] fields
|
|
7959
|
+
# Selector specifying which fields to include in a partial response.
|
|
7960
|
+
# @param [String] quota_user
|
|
7961
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7962
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7963
|
+
# @param [String] user_ip
|
|
7964
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
7965
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7966
|
+
# Request-specific options
|
|
7967
|
+
#
|
|
7968
|
+
# @yield [result, err] Result & error if block supplied
|
|
7969
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
|
|
7970
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7971
|
+
#
|
|
7972
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
|
|
7973
|
+
#
|
|
7974
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7975
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7976
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7977
|
+
def list_folder_global_vm_extension_policies(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
7978
|
+
command = make_simple_command(:get, '{+folder}/global/vmExtensionPolicies', options)
|
|
7979
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
|
|
7980
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
|
|
7981
|
+
command.params['folder'] = folder unless folder.nil?
|
|
7982
|
+
command.query['filter'] = filter unless filter.nil?
|
|
7983
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
7984
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
7985
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
7986
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7987
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7988
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
7989
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
7990
|
+
execute_or_queue_command(command, &block)
|
|
7991
|
+
end
|
|
7992
|
+
|
|
7993
|
+
# Lists all VM extensions within a folder.
|
|
7994
|
+
# This is a read-only API.
|
|
7995
|
+
# @param [String] folder
|
|
7996
|
+
# Required. Folder ID for this request.
|
|
7997
|
+
# @param [String] filter
|
|
7998
|
+
# A filter expression that filters resources listed in the response. Most
|
|
7999
|
+
# Compute resources support two types of filter expressions:
|
|
8000
|
+
# expressions that support regular expressions and expressions that follow
|
|
8001
|
+
# API improvement proposal AIP-160.
|
|
8002
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
8003
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
8004
|
+
# operator, and the value that you want to use for filtering. The value
|
|
8005
|
+
# must be a string, a number, or a boolean. The operator
|
|
8006
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
8007
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
8008
|
+
# exclude instances named `example-instance` by specifying
|
|
8009
|
+
# `name != example-instance`.
|
|
8010
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
8011
|
+
# For example, to find all objects with `owner` label use:
|
|
8012
|
+
# ```
|
|
8013
|
+
# labels.owner:*
|
|
8014
|
+
# ```
|
|
8015
|
+
# You can also filter nested fields. For example, you could specify
|
|
8016
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
8017
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
8018
|
+
# on nested fields to filter based onresource labels.
|
|
8019
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8020
|
+
# parentheses. For example:
|
|
8021
|
+
# ```
|
|
8022
|
+
# (scheduling.automaticRestart = true)
|
|
8023
|
+
# (cpuPlatform = "Intel Skylake")
|
|
8024
|
+
# ```
|
|
8025
|
+
# By default, each expression is an `AND` expression. However, you
|
|
8026
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
8027
|
+
# For example:
|
|
8028
|
+
# ```
|
|
8029
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
8030
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
8031
|
+
# (scheduling.automaticRestart = true)
|
|
8032
|
+
# ```
|
|
8033
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
8034
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
8035
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
8036
|
+
# `fieldname eq unquoted literal`
|
|
8037
|
+
# `fieldname eq 'single quoted literal'`
|
|
8038
|
+
# `fieldname eq "double quoted literal"`
|
|
8039
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
8040
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
8041
|
+
# library syntax.
|
|
8042
|
+
# The literal value must match the entire field.
|
|
8043
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
8044
|
+
# you would use `name ne .*instance`.
|
|
8045
|
+
# You cannot combine constraints on multiple fields using regular
|
|
8046
|
+
# expressions.
|
|
8047
|
+
# @param [Fixnum] max_results
|
|
8048
|
+
# The maximum number of results per page that should be returned.
|
|
8049
|
+
# If the number of available results is larger than `maxResults`,
|
|
8050
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
8051
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
8052
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
8053
|
+
# @param [String] order_by
|
|
8054
|
+
# Sorts list results by a certain order. By default, results
|
|
8055
|
+
# are returned in alphanumerical order based on the resource name.
|
|
8056
|
+
# You can also sort results in descending order based on the creation
|
|
8057
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
8058
|
+
# results based on the `creationTimestamp` field in
|
|
8059
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
8060
|
+
# resources like operations so that the newest operation is returned first.
|
|
8061
|
+
# Currently, only sorting by `name` or
|
|
8062
|
+
# `creationTimestamp desc` is supported.
|
|
8063
|
+
# @param [String] page_token
|
|
8064
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
8065
|
+
# `nextPageToken` returned by a previous list request to get
|
|
8066
|
+
# the next page of results.
|
|
8067
|
+
# @param [String] fields
|
|
8068
|
+
# Selector specifying which fields to include in a partial response.
|
|
8069
|
+
# @param [String] quota_user
|
|
8070
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8071
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8072
|
+
# @param [String] user_ip
|
|
8073
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8074
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8075
|
+
# Request-specific options
|
|
8076
|
+
#
|
|
8077
|
+
# @yield [result, err] Result & error if block supplied
|
|
8078
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
|
|
8079
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8080
|
+
#
|
|
8081
|
+
# @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
|
|
8082
|
+
#
|
|
8083
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8084
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8085
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8086
|
+
def list_folder_global_vm_extension_policy_vm_extensions(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8087
|
+
command = make_simple_command(:get, '{+folder}/global/vmExtensions', options)
|
|
8088
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
|
|
8089
|
+
command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
|
|
8090
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8091
|
+
command.query['filter'] = filter unless filter.nil?
|
|
8092
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8093
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
8094
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
8095
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8097
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8098
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8099
|
+
execute_or_queue_command(command, &block)
|
|
8100
|
+
end
|
|
8101
|
+
|
|
8102
|
+
# Updates a folder level GlobalVmExtensionPolicy.
|
|
8103
|
+
# @param [String] folder
|
|
8104
|
+
# Folder ID for this request.
|
|
8105
|
+
# @param [String] global_vm_extension_policy
|
|
8106
|
+
# Name of the global VM extension policy to update.
|
|
8107
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
8108
|
+
# @param [String] request_id
|
|
8109
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
8110
|
+
# that if you must retry your request, the server will know to ignore the
|
|
8111
|
+
# request if it has already been completed.
|
|
8112
|
+
# For example, consider a situation where you make an initial request and
|
|
8113
|
+
# the request times out. If you make the request again with the same
|
|
8114
|
+
# request ID, the server can check if original operation with the same
|
|
8115
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
8116
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
8117
|
+
# The request ID must be
|
|
8118
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
8119
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
8120
|
+
# @param [String] fields
|
|
8121
|
+
# Selector specifying which fields to include in a partial response.
|
|
8122
|
+
# @param [String] quota_user
|
|
8123
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8124
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8125
|
+
# @param [String] user_ip
|
|
8126
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8127
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8128
|
+
# Request-specific options
|
|
8129
|
+
#
|
|
8130
|
+
# @yield [result, err] Result & error if block supplied
|
|
8131
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
8132
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8133
|
+
#
|
|
8134
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
8135
|
+
#
|
|
8136
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8137
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8138
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8139
|
+
def update_folder_global_vm_extension_policy(folder, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8140
|
+
command = make_simple_command(:patch, '{+folder}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
8141
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
8142
|
+
command.request_object = global_vm_extension_policy_object
|
|
8143
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
8144
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
8145
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8146
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
8147
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
8148
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8150
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8151
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8152
|
+
execute_or_queue_command(command, &block)
|
|
8153
|
+
end
|
|
8154
|
+
|
|
8155
|
+
# Deletes a specified zone VM extension policy within a folder.
|
|
8156
|
+
# @param [String] folder
|
|
8157
|
+
# Folder ID for this request.
|
|
8158
|
+
# @param [String] zone
|
|
8159
|
+
# Name of the zone for this request.
|
|
8160
|
+
# @param [String] vm_extension_policy
|
|
8161
|
+
# Name of the zone VM extension policy to delete.
|
|
8162
|
+
# @param [String] request_id
|
|
8163
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
8164
|
+
# that if you must retry your request, the server will know to ignore the
|
|
8165
|
+
# request if it has already been completed.
|
|
8166
|
+
# For example, consider a situation where you make an initial request and
|
|
8167
|
+
# the request times out. If you make the request again with the same
|
|
8168
|
+
# request ID, the server can check if original operation with the same
|
|
8169
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
8170
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
8171
|
+
# The request ID must be
|
|
8172
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
8173
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
8174
|
+
# @param [String] fields
|
|
8175
|
+
# Selector specifying which fields to include in a partial response.
|
|
8176
|
+
# @param [String] quota_user
|
|
8177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8179
|
+
# @param [String] user_ip
|
|
8180
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8181
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8182
|
+
# Request-specific options
|
|
8183
|
+
#
|
|
8184
|
+
# @yield [result, err] Result & error if block supplied
|
|
8185
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
8186
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8187
|
+
#
|
|
8188
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
8189
|
+
#
|
|
8190
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8191
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8192
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8193
|
+
def delete_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8194
|
+
command = make_simple_command(:delete, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
8195
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
8196
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
8197
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8198
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8199
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
8200
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
8201
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8203
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8204
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8205
|
+
execute_or_queue_command(command, &block)
|
|
8206
|
+
end
|
|
8207
|
+
|
|
8208
|
+
# Retrieves details of a specific zone VM extension policy within a folder.
|
|
8209
|
+
# @param [String] folder
|
|
8210
|
+
# Folder ID for this request.
|
|
8211
|
+
# @param [String] zone
|
|
8212
|
+
# Name of the zone for this request.
|
|
8213
|
+
# @param [String] vm_extension_policy
|
|
8214
|
+
# Name of the VM extension policy resource to return.
|
|
8215
|
+
# @param [String] fields
|
|
8216
|
+
# Selector specifying which fields to include in a partial response.
|
|
8217
|
+
# @param [String] quota_user
|
|
8218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8220
|
+
# @param [String] user_ip
|
|
8221
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8222
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8223
|
+
# Request-specific options
|
|
8224
|
+
#
|
|
8225
|
+
# @yield [result, err] Result & error if block supplied
|
|
8226
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
|
|
8227
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8228
|
+
#
|
|
8229
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicy]
|
|
8230
|
+
#
|
|
8231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8234
|
+
def get_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8235
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
8236
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
8237
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
|
|
8238
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8239
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8240
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
8241
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8242
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8243
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8244
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8245
|
+
execute_or_queue_command(command, &block)
|
|
8246
|
+
end
|
|
8247
|
+
|
|
8248
|
+
# Retrieves details of a specific VM extension within a folder.
|
|
8249
|
+
# @param [String] folder
|
|
8250
|
+
# Folder ID for this request.
|
|
8251
|
+
# @param [String] zone
|
|
8252
|
+
# Name of the zone for this request.
|
|
8253
|
+
# @param [String] extension_name
|
|
8254
|
+
# Required. Name of the VM extension for this request.
|
|
8255
|
+
# @param [String] fields
|
|
8256
|
+
# Selector specifying which fields to include in a partial response.
|
|
8257
|
+
# @param [String] quota_user
|
|
8258
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8259
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8260
|
+
# @param [String] user_ip
|
|
8261
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8262
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8263
|
+
# Request-specific options
|
|
8264
|
+
#
|
|
8265
|
+
# @yield [result, err] Result & error if block supplied
|
|
8266
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
|
|
8267
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8268
|
+
#
|
|
8269
|
+
# @return [Google::Apis::ComputePreview::VmExtension]
|
|
8270
|
+
#
|
|
8271
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8272
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8273
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8274
|
+
def get_folder_zone_vm_extension_policy_vm_extension(folder, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8275
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensions/{extensionName}', options)
|
|
8276
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
|
|
8277
|
+
command.response_class = Google::Apis::ComputePreview::VmExtension
|
|
8278
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8279
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8280
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
8281
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8282
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8283
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8284
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8285
|
+
execute_or_queue_command(command, &block)
|
|
8286
|
+
end
|
|
8287
|
+
|
|
8288
|
+
# Creates a new zone-level VM extension policy within a folder.
|
|
8289
|
+
# @param [String] folder
|
|
8290
|
+
# Folder ID for this request.
|
|
8291
|
+
# @param [String] zone
|
|
8292
|
+
# Name of the zone for this request.
|
|
8293
|
+
# @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
|
|
8294
|
+
# @param [String] request_id
|
|
8295
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
8296
|
+
# that if you must retry your request, the server will know to ignore the
|
|
8297
|
+
# request if it has already been completed.
|
|
8298
|
+
# For example, consider a situation where you make an initial request and
|
|
8299
|
+
# the request times out. If you make the request again with the same
|
|
8300
|
+
# request ID, the server can check if original operation with the same
|
|
8301
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
8302
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
8303
|
+
# The request ID must be
|
|
8304
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
8305
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
8306
|
+
# @param [String] fields
|
|
8307
|
+
# Selector specifying which fields to include in a partial response.
|
|
8308
|
+
# @param [String] quota_user
|
|
8309
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8310
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8311
|
+
# @param [String] user_ip
|
|
8312
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8313
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8314
|
+
# Request-specific options
|
|
8315
|
+
#
|
|
8316
|
+
# @yield [result, err] Result & error if block supplied
|
|
8317
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
8318
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8319
|
+
#
|
|
8320
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
8321
|
+
#
|
|
8322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8325
|
+
def insert_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8326
|
+
command = make_simple_command(:post, '{+folder}/zones/{zone}/vmExtensionPolicies', options)
|
|
8327
|
+
command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
8328
|
+
command.request_object = vm_extension_policy_object
|
|
8329
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
8330
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
8331
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8332
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8333
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
8334
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8336
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8337
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8338
|
+
execute_or_queue_command(command, &block)
|
|
8339
|
+
end
|
|
8340
|
+
|
|
8341
|
+
# Lists all VM extension policies within a specific zone for a folder.
|
|
8342
|
+
# @param [String] folder
|
|
8343
|
+
# Folder ID for this request.
|
|
8344
|
+
# @param [String] zone
|
|
8345
|
+
# Name of the zone for this request.
|
|
8346
|
+
# @param [String] filter
|
|
8347
|
+
# A filter expression that filters resources listed in the response. Most
|
|
8348
|
+
# Compute resources support two types of filter expressions:
|
|
8349
|
+
# expressions that support regular expressions and expressions that follow
|
|
8350
|
+
# API improvement proposal AIP-160.
|
|
8351
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
8352
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
8353
|
+
# operator, and the value that you want to use for filtering. The value
|
|
8354
|
+
# must be a string, a number, or a boolean. The operator
|
|
8355
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
8356
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
8357
|
+
# exclude instances named `example-instance` by specifying
|
|
8358
|
+
# `name != example-instance`.
|
|
8359
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
8360
|
+
# For example, to find all objects with `owner` label use:
|
|
8361
|
+
# ```
|
|
8362
|
+
# labels.owner:*
|
|
8363
|
+
# ```
|
|
8364
|
+
# You can also filter nested fields. For example, you could specify
|
|
8365
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
8366
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
8367
|
+
# on nested fields to filter based onresource labels.
|
|
8368
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8369
|
+
# parentheses. For example:
|
|
8370
|
+
# ```
|
|
8371
|
+
# (scheduling.automaticRestart = true)
|
|
8372
|
+
# (cpuPlatform = "Intel Skylake")
|
|
8373
|
+
# ```
|
|
8374
|
+
# By default, each expression is an `AND` expression. However, you
|
|
8375
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
8376
|
+
# For example:
|
|
8377
|
+
# ```
|
|
8378
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
8379
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
8380
|
+
# (scheduling.automaticRestart = true)
|
|
8381
|
+
# ```
|
|
8382
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
8383
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
8384
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
8385
|
+
# `fieldname eq unquoted literal`
|
|
8386
|
+
# `fieldname eq 'single quoted literal'`
|
|
8387
|
+
# `fieldname eq "double quoted literal"`
|
|
8388
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
8389
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
8390
|
+
# library syntax.
|
|
8391
|
+
# The literal value must match the entire field.
|
|
8392
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
8393
|
+
# you would use `name ne .*instance`.
|
|
8394
|
+
# You cannot combine constraints on multiple fields using regular
|
|
8395
|
+
# expressions.
|
|
8396
|
+
# @param [Fixnum] max_results
|
|
8397
|
+
# The maximum number of results per page that should be returned.
|
|
8398
|
+
# If the number of available results is larger than `maxResults`,
|
|
8399
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
8400
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
8401
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
8402
|
+
# @param [String] order_by
|
|
8403
|
+
# Sorts list results by a certain order. By default, results
|
|
8404
|
+
# are returned in alphanumerical order based on the resource name.
|
|
8405
|
+
# You can also sort results in descending order based on the creation
|
|
8406
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
8407
|
+
# results based on the `creationTimestamp` field in
|
|
8408
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
8409
|
+
# resources like operations so that the newest operation is returned first.
|
|
8410
|
+
# Currently, only sorting by `name` or
|
|
8411
|
+
# `creationTimestamp desc` is supported.
|
|
8412
|
+
# @param [String] page_token
|
|
8413
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
8414
|
+
# `nextPageToken` returned by a previous list request to get
|
|
8415
|
+
# the next page of results.
|
|
8416
|
+
# @param [String] fields
|
|
8417
|
+
# Selector specifying which fields to include in a partial response.
|
|
8418
|
+
# @param [String] quota_user
|
|
8419
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8420
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8421
|
+
# @param [String] user_ip
|
|
8422
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8423
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8424
|
+
# Request-specific options
|
|
8425
|
+
#
|
|
8426
|
+
# @yield [result, err] Result & error if block supplied
|
|
8427
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyList] parsed result object
|
|
8428
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8429
|
+
#
|
|
8430
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicyList]
|
|
8431
|
+
#
|
|
8432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8435
|
+
def list_folder_zone_vm_extension_policies(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8436
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensionPolicies', options)
|
|
8437
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyList::Representation
|
|
8438
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyList
|
|
8439
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8440
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8441
|
+
command.query['filter'] = filter unless filter.nil?
|
|
8442
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8443
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
8444
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
8445
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8447
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8448
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8449
|
+
execute_or_queue_command(command, &block)
|
|
8450
|
+
end
|
|
8451
|
+
|
|
8452
|
+
# Lists all VM extensions within a specific zone for a folder.
|
|
8453
|
+
# This is a read-only API.
|
|
8454
|
+
# @param [String] folder
|
|
8455
|
+
# Folder ID for this request.
|
|
8456
|
+
# @param [String] zone
|
|
8457
|
+
# Name of the zone for this request.
|
|
8458
|
+
# @param [String] filter
|
|
8459
|
+
# A filter expression that filters resources listed in the response. Most
|
|
8460
|
+
# Compute resources support two types of filter expressions:
|
|
8461
|
+
# expressions that support regular expressions and expressions that follow
|
|
8462
|
+
# API improvement proposal AIP-160.
|
|
8463
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
8464
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
8465
|
+
# operator, and the value that you want to use for filtering. The value
|
|
8466
|
+
# must be a string, a number, or a boolean. The operator
|
|
8467
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
8468
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
8469
|
+
# exclude instances named `example-instance` by specifying
|
|
8470
|
+
# `name != example-instance`.
|
|
8471
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
8472
|
+
# For example, to find all objects with `owner` label use:
|
|
8473
|
+
# ```
|
|
8474
|
+
# labels.owner:*
|
|
8475
|
+
# ```
|
|
8476
|
+
# You can also filter nested fields. For example, you could specify
|
|
8477
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
8478
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
8479
|
+
# on nested fields to filter based onresource labels.
|
|
8480
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8481
|
+
# parentheses. For example:
|
|
8482
|
+
# ```
|
|
8483
|
+
# (scheduling.automaticRestart = true)
|
|
8484
|
+
# (cpuPlatform = "Intel Skylake")
|
|
8485
|
+
# ```
|
|
8486
|
+
# By default, each expression is an `AND` expression. However, you
|
|
8487
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
8488
|
+
# For example:
|
|
8489
|
+
# ```
|
|
8490
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
8491
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
8492
|
+
# (scheduling.automaticRestart = true)
|
|
8493
|
+
# ```
|
|
8494
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
8495
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
8496
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
8497
|
+
# `fieldname eq unquoted literal`
|
|
8498
|
+
# `fieldname eq 'single quoted literal'`
|
|
8499
|
+
# `fieldname eq "double quoted literal"`
|
|
8500
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
8501
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
8502
|
+
# library syntax.
|
|
8503
|
+
# The literal value must match the entire field.
|
|
8504
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
8505
|
+
# you would use `name ne .*instance`.
|
|
8506
|
+
# You cannot combine constraints on multiple fields using regular
|
|
8507
|
+
# expressions.
|
|
8508
|
+
# @param [Fixnum] max_results
|
|
8509
|
+
# The maximum number of results per page that should be returned.
|
|
8510
|
+
# If the number of available results is larger than `maxResults`,
|
|
8511
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
8512
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
8513
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
8514
|
+
# @param [String] order_by
|
|
8515
|
+
# Sorts list results by a certain order. By default, results
|
|
8516
|
+
# are returned in alphanumerical order based on the resource name.
|
|
8517
|
+
# You can also sort results in descending order based on the creation
|
|
8518
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
8519
|
+
# results based on the `creationTimestamp` field in
|
|
8520
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
8521
|
+
# resources like operations so that the newest operation is returned first.
|
|
8522
|
+
# Currently, only sorting by `name` or
|
|
8523
|
+
# `creationTimestamp desc` is supported.
|
|
8524
|
+
# @param [String] page_token
|
|
8525
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
8526
|
+
# `nextPageToken` returned by a previous list request to get
|
|
8527
|
+
# the next page of results.
|
|
8528
|
+
# @param [String] fields
|
|
8529
|
+
# Selector specifying which fields to include in a partial response.
|
|
8530
|
+
# @param [String] quota_user
|
|
8531
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8532
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8533
|
+
# @param [String] user_ip
|
|
8534
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8535
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8536
|
+
# Request-specific options
|
|
8537
|
+
#
|
|
8538
|
+
# @yield [result, err] Result & error if block supplied
|
|
8539
|
+
# @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
|
|
8540
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8541
|
+
#
|
|
8542
|
+
# @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
|
|
8543
|
+
#
|
|
8544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8547
|
+
def list_folder_zone_vm_extension_policy_vm_extensions(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8548
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/vmExtensions', options)
|
|
8549
|
+
command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
|
|
8550
|
+
command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
|
|
8551
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8552
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8553
|
+
command.query['filter'] = filter unless filter.nil?
|
|
8554
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8555
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
8556
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
8557
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8558
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8559
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8560
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8561
|
+
execute_or_queue_command(command, &block)
|
|
8562
|
+
end
|
|
8563
|
+
|
|
8564
|
+
# Modifies an existing zone VM extension policy within a folder.
|
|
8565
|
+
# @param [String] folder
|
|
8566
|
+
# Folder ID for this request.
|
|
8567
|
+
# @param [String] zone
|
|
8568
|
+
# Name of the zone for this request.
|
|
8569
|
+
# @param [String] vm_extension_policy
|
|
8570
|
+
# Name of the zone VM extension policy to update.
|
|
8571
|
+
# @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
|
|
8572
|
+
# @param [String] request_id
|
|
8573
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
8574
|
+
# that if you must retry your request, the server will know to ignore the
|
|
8575
|
+
# request if it has already been completed.
|
|
8576
|
+
# For example, consider a situation where you make an initial request and
|
|
8577
|
+
# the request times out. If you make the request again with the same
|
|
8578
|
+
# request ID, the server can check if original operation with the same
|
|
8579
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
8580
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
8581
|
+
# The request ID must be
|
|
8582
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
8583
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
8584
|
+
# @param [String] fields
|
|
8585
|
+
# Selector specifying which fields to include in a partial response.
|
|
8586
|
+
# @param [String] quota_user
|
|
8587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8589
|
+
# @param [String] user_ip
|
|
8590
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8591
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8592
|
+
# Request-specific options
|
|
8593
|
+
#
|
|
8594
|
+
# @yield [result, err] Result & error if block supplied
|
|
8595
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
8596
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8597
|
+
#
|
|
8598
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
8599
|
+
#
|
|
8600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8603
|
+
def update_folder_zone_vm_extension_policy(folder, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8604
|
+
command = make_simple_command(:patch, '{+folder}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
8605
|
+
command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
8606
|
+
command.request_object = vm_extension_policy_object
|
|
8607
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
8608
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
8609
|
+
command.params['folder'] = folder unless folder.nil?
|
|
8610
|
+
command.params['zone'] = zone unless zone.nil?
|
|
8611
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
8612
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
8613
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8614
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8615
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8616
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8617
|
+
execute_or_queue_command(command, &block)
|
|
8618
|
+
end
|
|
8619
|
+
|
|
8620
|
+
# Retrieves an aggregated list of forwarding rules.
|
|
8621
|
+
# To prevent failure, it is recommended that you set the
|
|
8622
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
8623
|
+
# @param [String] project
|
|
8624
|
+
# Project ID for this request.
|
|
8625
|
+
# @param [String] filter
|
|
8626
|
+
# A filter expression that filters resources listed in the response. Most
|
|
8627
|
+
# Compute resources support two types of filter expressions:
|
|
8628
|
+
# expressions that support regular expressions and expressions that follow
|
|
8629
|
+
# API improvement proposal AIP-160.
|
|
8630
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
8631
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
8632
|
+
# operator, and the value that you want to use for filtering. The value
|
|
8633
|
+
# must be a string, a number, or a boolean. The operator
|
|
8634
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
8635
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
8636
|
+
# exclude instances named `example-instance` by specifying
|
|
8637
|
+
# `name != example-instance`.
|
|
8638
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
8639
|
+
# For example, to find all objects with `owner` label use:
|
|
8640
|
+
# ```
|
|
8641
|
+
# labels.owner:*
|
|
8642
|
+
# ```
|
|
8643
|
+
# You can also filter nested fields. For example, you could specify
|
|
8644
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
8645
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
8646
|
+
# on nested fields to filter based onresource labels.
|
|
8647
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
8648
|
+
# parentheses. For example:
|
|
8649
|
+
# ```
|
|
8650
|
+
# (scheduling.automaticRestart = true)
|
|
8651
|
+
# (cpuPlatform = "Intel Skylake")
|
|
8652
|
+
# ```
|
|
8653
|
+
# By default, each expression is an `AND` expression. However, you
|
|
8654
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
8655
|
+
# For example:
|
|
8656
|
+
# ```
|
|
8657
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
8658
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
8659
|
+
# (scheduling.automaticRestart = true)
|
|
8660
|
+
# ```
|
|
8661
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
8662
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
8663
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
8664
|
+
# `fieldname eq unquoted literal`
|
|
8665
|
+
# `fieldname eq 'single quoted literal'`
|
|
8666
|
+
# `fieldname eq "double quoted literal"`
|
|
8667
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
8668
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
8669
|
+
# library syntax.
|
|
8670
|
+
# The literal value must match the entire field.
|
|
8671
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
8672
|
+
# you would use `name ne .*instance`.
|
|
8673
|
+
# You cannot combine constraints on multiple fields using regular
|
|
8674
|
+
# expressions.
|
|
8675
|
+
# @param [Boolean] include_all_scopes
|
|
8676
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
8677
|
+
# global) should be included in the response. For new resource types added
|
|
8678
|
+
# after this field, the flag has no effect as new resource types will always
|
|
8679
|
+
# include every visible scope for each scope type in response. For resource
|
|
8680
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
8681
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
8682
|
+
# will be included.
|
|
8683
|
+
# @param [Fixnum] max_results
|
|
8684
|
+
# The maximum number of results per page that should be returned.
|
|
8685
|
+
# If the number of available results is larger than `maxResults`,
|
|
8686
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
8687
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
8688
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
8689
|
+
# @param [String] order_by
|
|
8690
|
+
# Sorts list results by a certain order. By default, results
|
|
8691
|
+
# are returned in alphanumerical order based on the resource name.
|
|
8692
|
+
# You can also sort results in descending order based on the creation
|
|
8693
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
8694
|
+
# results based on the `creationTimestamp` field in
|
|
8695
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
8696
|
+
# resources like operations so that the newest operation is returned first.
|
|
8697
|
+
# Currently, only sorting by `name` or
|
|
8698
|
+
# `creationTimestamp desc` is supported.
|
|
8699
|
+
# @param [String] page_token
|
|
8700
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
8701
|
+
# `nextPageToken` returned by a previous list request to get
|
|
8702
|
+
# the next page of results.
|
|
8703
|
+
# @param [Fixnum] service_project_number
|
|
8704
|
+
# The Shared VPC service project id or service project number for which
|
|
8705
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
8706
|
+
# @param [String] fields
|
|
8707
|
+
# Selector specifying which fields to include in a partial response.
|
|
8708
|
+
# @param [String] quota_user
|
|
8709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8711
|
+
# @param [String] user_ip
|
|
8712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8713
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8714
|
+
# Request-specific options
|
|
8715
|
+
#
|
|
8716
|
+
# @yield [result, err] Result & error if block supplied
|
|
8717
|
+
# @yieldparam result [Google::Apis::ComputePreview::ForwardingRuleAggregatedList] parsed result object
|
|
8718
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8719
|
+
#
|
|
8720
|
+
# @return [Google::Apis::ComputePreview::ForwardingRuleAggregatedList]
|
|
8721
|
+
#
|
|
8722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8725
|
+
def aggregated_forwarding_rule_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8726
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/forwardingRules', options)
|
|
8727
|
+
command.response_representation = Google::Apis::ComputePreview::ForwardingRuleAggregatedList::Representation
|
|
8728
|
+
command.response_class = Google::Apis::ComputePreview::ForwardingRuleAggregatedList
|
|
8729
|
+
command.params['project'] = project unless project.nil?
|
|
8730
|
+
command.query['filter'] = filter unless filter.nil?
|
|
8731
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
8732
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
8733
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
8734
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
8735
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
8736
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8737
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8738
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8739
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8740
|
+
execute_or_queue_command(command, &block)
|
|
8741
|
+
end
|
|
8742
|
+
|
|
8743
|
+
# Deletes the specified ForwardingRule resource.
|
|
8744
|
+
# @param [String] project
|
|
8745
|
+
# Project ID for this request.
|
|
8746
|
+
# @param [String] region
|
|
8747
|
+
# Name of the region scoping this request.
|
|
8748
|
+
# @param [String] forwarding_rule
|
|
8749
|
+
# Name of the ForwardingRule resource to delete.
|
|
8750
|
+
# @param [String] request_id
|
|
8751
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
8752
|
+
# that if you must retry your request, the server will know to ignore the
|
|
8753
|
+
# request if it has already been completed.
|
|
8754
|
+
# For example, consider a situation where you make an initial request and
|
|
8755
|
+
# the request times out. If you make the request again with the same
|
|
8756
|
+
# request ID, the server can check if original operation with the same
|
|
8757
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
8758
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
8759
|
+
# The request ID must be
|
|
8760
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
8761
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
8762
|
+
# @param [String] fields
|
|
8763
|
+
# Selector specifying which fields to include in a partial response.
|
|
8764
|
+
# @param [String] quota_user
|
|
8765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8767
|
+
# @param [String] user_ip
|
|
8768
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8769
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8770
|
+
# Request-specific options
|
|
8771
|
+
#
|
|
8772
|
+
# @yield [result, err] Result & error if block supplied
|
|
8773
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
8774
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8775
|
+
#
|
|
8776
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
8777
|
+
#
|
|
8778
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8779
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8780
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8781
|
+
def delete_forwarding_rule(project, region, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8782
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
|
|
8783
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
8784
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
8785
|
+
command.params['project'] = project unless project.nil?
|
|
8786
|
+
command.params['region'] = region unless region.nil?
|
|
8787
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
|
8788
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
8789
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8791
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8792
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8793
|
+
execute_or_queue_command(command, &block)
|
|
8794
|
+
end
|
|
8795
|
+
|
|
8796
|
+
# Returns the specified ForwardingRule resource.
|
|
8797
|
+
# @param [String] project
|
|
8798
|
+
# Project ID for this request.
|
|
8799
|
+
# @param [String] region
|
|
8800
|
+
# Name of the region scoping this request.
|
|
8801
|
+
# @param [String] forwarding_rule
|
|
8802
|
+
# Name of the ForwardingRule resource to return.
|
|
8803
|
+
# @param [String] view
|
|
8804
|
+
# @param [String] fields
|
|
8805
|
+
# Selector specifying which fields to include in a partial response.
|
|
8806
|
+
# @param [String] quota_user
|
|
8807
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
8808
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
8809
|
+
# @param [String] user_ip
|
|
8810
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
8811
|
+
# @param [Google::Apis::RequestOptions] options
|
|
8812
|
+
# Request-specific options
|
|
8813
|
+
#
|
|
8814
|
+
# @yield [result, err] Result & error if block supplied
|
|
8815
|
+
# @yieldparam result [Google::Apis::ComputePreview::ForwardingRule] parsed result object
|
|
8816
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
8817
|
+
#
|
|
8818
|
+
# @return [Google::Apis::ComputePreview::ForwardingRule]
|
|
8819
|
+
#
|
|
8820
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
8821
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
8822
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
8823
|
+
def get_forwarding_rule(project, region, forwarding_rule, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
8824
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
|
|
8825
|
+
command.response_representation = Google::Apis::ComputePreview::ForwardingRule::Representation
|
|
8826
|
+
command.response_class = Google::Apis::ComputePreview::ForwardingRule
|
|
8827
|
+
command.params['project'] = project unless project.nil?
|
|
8828
|
+
command.params['region'] = region unless region.nil?
|
|
8829
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
|
8830
|
+
command.query['view'] = view unless view.nil?
|
|
8831
|
+
command.query['fields'] = fields unless fields.nil?
|
|
8832
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
8833
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
8834
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
8835
|
+
execute_or_queue_command(command, &block)
|
|
8836
|
+
end
|
|
8837
|
+
|
|
8838
|
+
# Creates a ForwardingRule resource in the specified project and region using
|
|
8839
|
+
# the data included in the request.
|
|
8840
|
+
# @param [String] project
|
|
8841
|
+
# Project ID for this request.
|
|
8842
|
+
# @param [String] region
|
|
8843
|
+
# Name of the region scoping this request.
|
|
8844
|
+
# @param [Google::Apis::ComputePreview::ForwardingRule] forwarding_rule_object
|
|
7561
8845
|
# @param [String] request_id
|
|
7562
8846
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
7563
8847
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -8766,6 +10050,152 @@ module Google
|
|
|
8766
10050
|
execute_or_queue_command(command, &block)
|
|
8767
10051
|
end
|
|
8768
10052
|
|
|
10053
|
+
# Retrieves the specified Operations resource.
|
|
10054
|
+
# @param [String] folder
|
|
10055
|
+
# Folder ID for this request.
|
|
10056
|
+
# @param [String] operation
|
|
10057
|
+
# Name of the Operations resource to return.
|
|
10058
|
+
# @param [String] fields
|
|
10059
|
+
# Selector specifying which fields to include in a partial response.
|
|
10060
|
+
# @param [String] quota_user
|
|
10061
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10062
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10063
|
+
# @param [String] user_ip
|
|
10064
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10065
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10066
|
+
# Request-specific options
|
|
10067
|
+
#
|
|
10068
|
+
# @yield [result, err] Result & error if block supplied
|
|
10069
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
10070
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10071
|
+
#
|
|
10072
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
10073
|
+
#
|
|
10074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10077
|
+
def get_global_folder_operation(folder, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10078
|
+
command = make_simple_command(:get, '{+folder}/global/operations/{operation}', options)
|
|
10079
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
10080
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
10081
|
+
command.params['folder'] = folder unless folder.nil?
|
|
10082
|
+
command.params['operation'] = operation unless operation.nil?
|
|
10083
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10084
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10085
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10086
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
10087
|
+
execute_or_queue_command(command, &block)
|
|
10088
|
+
end
|
|
10089
|
+
|
|
10090
|
+
# Retrieves a list of Operation resources contained within the specified
|
|
10091
|
+
# folder.
|
|
10092
|
+
# @param [String] folder
|
|
10093
|
+
# Folder ID for this request.
|
|
10094
|
+
# @param [String] filter
|
|
10095
|
+
# A filter expression that filters resources listed in the response. Most
|
|
10096
|
+
# Compute resources support two types of filter expressions:
|
|
10097
|
+
# expressions that support regular expressions and expressions that follow
|
|
10098
|
+
# API improvement proposal AIP-160.
|
|
10099
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
10100
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
10101
|
+
# operator, and the value that you want to use for filtering. The value
|
|
10102
|
+
# must be a string, a number, or a boolean. The operator
|
|
10103
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
10104
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
10105
|
+
# exclude instances named `example-instance` by specifying
|
|
10106
|
+
# `name != example-instance`.
|
|
10107
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
10108
|
+
# For example, to find all objects with `owner` label use:
|
|
10109
|
+
# ```
|
|
10110
|
+
# labels.owner:*
|
|
10111
|
+
# ```
|
|
10112
|
+
# You can also filter nested fields. For example, you could specify
|
|
10113
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
10114
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
10115
|
+
# on nested fields to filter based onresource labels.
|
|
10116
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
10117
|
+
# parentheses. For example:
|
|
10118
|
+
# ```
|
|
10119
|
+
# (scheduling.automaticRestart = true)
|
|
10120
|
+
# (cpuPlatform = "Intel Skylake")
|
|
10121
|
+
# ```
|
|
10122
|
+
# By default, each expression is an `AND` expression. However, you
|
|
10123
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
10124
|
+
# For example:
|
|
10125
|
+
# ```
|
|
10126
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
10127
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
10128
|
+
# (scheduling.automaticRestart = true)
|
|
10129
|
+
# ```
|
|
10130
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
10131
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
10132
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
10133
|
+
# `fieldname eq unquoted literal`
|
|
10134
|
+
# `fieldname eq 'single quoted literal'`
|
|
10135
|
+
# `fieldname eq "double quoted literal"`
|
|
10136
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
10137
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
10138
|
+
# library syntax.
|
|
10139
|
+
# The literal value must match the entire field.
|
|
10140
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
10141
|
+
# you would use `name ne .*instance`.
|
|
10142
|
+
# You cannot combine constraints on multiple fields using regular
|
|
10143
|
+
# expressions.
|
|
10144
|
+
# @param [Fixnum] max_results
|
|
10145
|
+
# The maximum number of results per page that should be returned.
|
|
10146
|
+
# If the number of available results is larger than `maxResults`,
|
|
10147
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
10148
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
10149
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
10150
|
+
# @param [String] order_by
|
|
10151
|
+
# Sorts list results by a certain order. By default, results
|
|
10152
|
+
# are returned in alphanumerical order based on the resource name.
|
|
10153
|
+
# You can also sort results in descending order based on the creation
|
|
10154
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
10155
|
+
# results based on the `creationTimestamp` field in
|
|
10156
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
10157
|
+
# resources like operations so that the newest operation is returned first.
|
|
10158
|
+
# Currently, only sorting by `name` or
|
|
10159
|
+
# `creationTimestamp desc` is supported.
|
|
10160
|
+
# @param [String] page_token
|
|
10161
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
10162
|
+
# `nextPageToken` returned by a previous list request to get
|
|
10163
|
+
# the next page of results.
|
|
10164
|
+
# @param [String] fields
|
|
10165
|
+
# Selector specifying which fields to include in a partial response.
|
|
10166
|
+
# @param [String] quota_user
|
|
10167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
10168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10169
|
+
# @param [String] user_ip
|
|
10170
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10171
|
+
# @param [Google::Apis::RequestOptions] options
|
|
10172
|
+
# Request-specific options
|
|
10173
|
+
#
|
|
10174
|
+
# @yield [result, err] Result & error if block supplied
|
|
10175
|
+
# @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
|
|
10176
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
10177
|
+
#
|
|
10178
|
+
# @return [Google::Apis::ComputePreview::OperationList]
|
|
10179
|
+
#
|
|
10180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10183
|
+
def list_global_folder_operations(folder, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10184
|
+
command = make_simple_command(:get, '{+folder}/global/operations', options)
|
|
10185
|
+
command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
|
|
10186
|
+
command.response_class = Google::Apis::ComputePreview::OperationList
|
|
10187
|
+
command.params['folder'] = folder unless folder.nil?
|
|
10188
|
+
command.query['filter'] = filter unless filter.nil?
|
|
10189
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
10190
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
10191
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10192
|
+
command.query['fields'] = fields unless fields.nil?
|
|
10193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10194
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10195
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
10196
|
+
execute_or_queue_command(command, &block)
|
|
10197
|
+
end
|
|
10198
|
+
|
|
8769
10199
|
# Deletes the specified GlobalForwardingRule resource.
|
|
8770
10200
|
# @param [String] project
|
|
8771
10201
|
# Project ID for this request.
|
|
@@ -10628,14 +12058,309 @@ module Google
|
|
|
10628
12058
|
# you would use `name ne .*instance`.
|
|
10629
12059
|
# You cannot combine constraints on multiple fields using regular
|
|
10630
12060
|
# expressions.
|
|
10631
|
-
# @param [Boolean] include_all_scopes
|
|
10632
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
|
10633
|
-
# global) should be included in the response. For new resource types added
|
|
10634
|
-
# after this field, the flag has no effect as new resource types will always
|
|
10635
|
-
# include every visible scope for each scope type in response. For resource
|
|
10636
|
-
# types which predate this field, if this flag is omitted or false, only
|
|
10637
|
-
# scopes of the scope types where the resource type is expected to be found
|
|
10638
|
-
# will be included.
|
|
12061
|
+
# @param [Boolean] include_all_scopes
|
|
12062
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
12063
|
+
# global) should be included in the response. For new resource types added
|
|
12064
|
+
# after this field, the flag has no effect as new resource types will always
|
|
12065
|
+
# include every visible scope for each scope type in response. For resource
|
|
12066
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
12067
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
12068
|
+
# will be included.
|
|
12069
|
+
# @param [Fixnum] max_results
|
|
12070
|
+
# The maximum number of results per page that should be returned.
|
|
12071
|
+
# If the number of available results is larger than `maxResults`,
|
|
12072
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
12073
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
12074
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
12075
|
+
# @param [String] order_by
|
|
12076
|
+
# Sorts list results by a certain order. By default, results
|
|
12077
|
+
# are returned in alphanumerical order based on the resource name.
|
|
12078
|
+
# You can also sort results in descending order based on the creation
|
|
12079
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
12080
|
+
# results based on the `creationTimestamp` field in
|
|
12081
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
12082
|
+
# resources like operations so that the newest operation is returned first.
|
|
12083
|
+
# Currently, only sorting by `name` or
|
|
12084
|
+
# `creationTimestamp desc` is supported.
|
|
12085
|
+
# @param [String] page_token
|
|
12086
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
12087
|
+
# `nextPageToken` returned by a previous list request to get
|
|
12088
|
+
# the next page of results.
|
|
12089
|
+
# @param [Fixnum] service_project_number
|
|
12090
|
+
# The Shared VPC service project id or service project number for which
|
|
12091
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
12092
|
+
# @param [String] fields
|
|
12093
|
+
# Selector specifying which fields to include in a partial response.
|
|
12094
|
+
# @param [String] quota_user
|
|
12095
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12096
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12097
|
+
# @param [String] user_ip
|
|
12098
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12099
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12100
|
+
# Request-specific options
|
|
12101
|
+
#
|
|
12102
|
+
# @yield [result, err] Result & error if block supplied
|
|
12103
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse] parsed result object
|
|
12104
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12105
|
+
#
|
|
12106
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse]
|
|
12107
|
+
#
|
|
12108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12111
|
+
def aggregated_global_vm_extension_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12112
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/vmExtensionPolicies', options)
|
|
12113
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse::Representation
|
|
12114
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyAggregatedListResponse
|
|
12115
|
+
command.params['project'] = project unless project.nil?
|
|
12116
|
+
command.query['filter'] = filter unless filter.nil?
|
|
12117
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
12118
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
12119
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
12120
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
12121
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
12122
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12124
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12125
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
12126
|
+
execute_or_queue_command(command, &block)
|
|
12127
|
+
end
|
|
12128
|
+
|
|
12129
|
+
# Purge scoped resources (zonal policies) from a global VM extension
|
|
12130
|
+
# policy, and then delete the global VM extension policy. Purge of the scoped
|
|
12131
|
+
# resources is a pre-condition of the global VM extension policy deletion.
|
|
12132
|
+
# The deletion of the global VM extension policy happens after the purge
|
|
12133
|
+
# rollout is done, so it's not a part of the LRO. It's an automatic process
|
|
12134
|
+
# that triggers in the backend.
|
|
12135
|
+
# @param [String] project
|
|
12136
|
+
# Project ID for this request.
|
|
12137
|
+
# @param [String] global_vm_extension_policy
|
|
12138
|
+
# Name of the global VM extension policy to purge scoped resources for.
|
|
12139
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
12140
|
+
# @param [String] request_id
|
|
12141
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
12142
|
+
# that if you must retry your request, the server will know to ignore the
|
|
12143
|
+
# request if it has already been completed.
|
|
12144
|
+
# For example, consider a situation where you make an initial request and
|
|
12145
|
+
# the request times out. If you make the request again with the same
|
|
12146
|
+
# request ID, the server can check if original operation with the same
|
|
12147
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
12148
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
12149
|
+
# The request ID must be
|
|
12150
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
12151
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
12152
|
+
# @param [String] fields
|
|
12153
|
+
# Selector specifying which fields to include in a partial response.
|
|
12154
|
+
# @param [String] quota_user
|
|
12155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12157
|
+
# @param [String] user_ip
|
|
12158
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12159
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12160
|
+
# Request-specific options
|
|
12161
|
+
#
|
|
12162
|
+
# @yield [result, err] Result & error if block supplied
|
|
12163
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
12164
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12165
|
+
#
|
|
12166
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
12167
|
+
#
|
|
12168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12171
|
+
def delete_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12172
|
+
command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
|
|
12173
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
|
|
12174
|
+
command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
12175
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
12176
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
12177
|
+
command.params['project'] = project unless project.nil?
|
|
12178
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
12179
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
12180
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12182
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12183
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
12184
|
+
execute_or_queue_command(command, &block)
|
|
12185
|
+
end
|
|
12186
|
+
|
|
12187
|
+
# Gets details of a global VM extension policy.
|
|
12188
|
+
# @param [String] project
|
|
12189
|
+
# Project ID for this request.
|
|
12190
|
+
# @param [String] global_vm_extension_policy
|
|
12191
|
+
# Name of the GlobalVmExtensionPolicy resource to return.
|
|
12192
|
+
# @param [String] fields
|
|
12193
|
+
# Selector specifying which fields to include in a partial response.
|
|
12194
|
+
# @param [String] quota_user
|
|
12195
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12196
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12197
|
+
# @param [String] user_ip
|
|
12198
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12199
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12200
|
+
# Request-specific options
|
|
12201
|
+
#
|
|
12202
|
+
# @yield [result, err] Result & error if block supplied
|
|
12203
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
|
|
12204
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12205
|
+
#
|
|
12206
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
|
|
12207
|
+
#
|
|
12208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12211
|
+
def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12212
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
12213
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
12214
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
|
|
12215
|
+
command.params['project'] = project unless project.nil?
|
|
12216
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
12217
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12219
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12220
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
12221
|
+
execute_or_queue_command(command, &block)
|
|
12222
|
+
end
|
|
12223
|
+
|
|
12224
|
+
# Retrieves details of a specific VM extension.
|
|
12225
|
+
# @param [String] project
|
|
12226
|
+
# Project ID for this request.
|
|
12227
|
+
# @param [String] extension_name
|
|
12228
|
+
# Required. Name of the VM extension for this request.
|
|
12229
|
+
# @param [String] fields
|
|
12230
|
+
# Selector specifying which fields to include in a partial response.
|
|
12231
|
+
# @param [String] quota_user
|
|
12232
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12233
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12234
|
+
# @param [String] user_ip
|
|
12235
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12236
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12237
|
+
# Request-specific options
|
|
12238
|
+
#
|
|
12239
|
+
# @yield [result, err] Result & error if block supplied
|
|
12240
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
|
|
12241
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12242
|
+
#
|
|
12243
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtension]
|
|
12244
|
+
#
|
|
12245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12248
|
+
def get_global_vm_extension_policy_vm_extension(project, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12249
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensions/{extensionName}', options)
|
|
12250
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
|
|
12251
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
|
|
12252
|
+
command.params['project'] = project unless project.nil?
|
|
12253
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
12254
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12255
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12256
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12257
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
12258
|
+
execute_or_queue_command(command, &block)
|
|
12259
|
+
end
|
|
12260
|
+
|
|
12261
|
+
# Creates a new project level GlobalVmExtensionPolicy.
|
|
12262
|
+
# @param [String] project
|
|
12263
|
+
# Project ID for this request.
|
|
12264
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
12265
|
+
# @param [String] request_id
|
|
12266
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
12267
|
+
# that if you must retry your request, the server will know to ignore the
|
|
12268
|
+
# request if it has already been completed.
|
|
12269
|
+
# For example, consider a situation where you make an initial request and
|
|
12270
|
+
# the request times out. If you make the request again with the same
|
|
12271
|
+
# request ID, the server can check if original operation with the same
|
|
12272
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
12273
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
12274
|
+
# The request ID must be
|
|
12275
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
12276
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
12277
|
+
# @param [String] fields
|
|
12278
|
+
# Selector specifying which fields to include in a partial response.
|
|
12279
|
+
# @param [String] quota_user
|
|
12280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
12281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
12282
|
+
# @param [String] user_ip
|
|
12283
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
12284
|
+
# @param [Google::Apis::RequestOptions] options
|
|
12285
|
+
# Request-specific options
|
|
12286
|
+
#
|
|
12287
|
+
# @yield [result, err] Result & error if block supplied
|
|
12288
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
12289
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
12290
|
+
#
|
|
12291
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
12292
|
+
#
|
|
12293
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
12294
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
12295
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
12296
|
+
def insert_global_vm_extension_policy(project, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12297
|
+
command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies', options)
|
|
12298
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
12299
|
+
command.request_object = global_vm_extension_policy_object
|
|
12300
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
12301
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
12302
|
+
command.params['project'] = project unless project.nil?
|
|
12303
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
12304
|
+
command.query['fields'] = fields unless fields.nil?
|
|
12305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
12306
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
12307
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
12308
|
+
execute_or_queue_command(command, &block)
|
|
12309
|
+
end
|
|
12310
|
+
|
|
12311
|
+
# Lists global VM extension policies.
|
|
12312
|
+
# @param [String] project
|
|
12313
|
+
# Project ID for this request.
|
|
12314
|
+
# @param [String] filter
|
|
12315
|
+
# A filter expression that filters resources listed in the response. Most
|
|
12316
|
+
# Compute resources support two types of filter expressions:
|
|
12317
|
+
# expressions that support regular expressions and expressions that follow
|
|
12318
|
+
# API improvement proposal AIP-160.
|
|
12319
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
12320
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
12321
|
+
# operator, and the value that you want to use for filtering. The value
|
|
12322
|
+
# must be a string, a number, or a boolean. The operator
|
|
12323
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
12324
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
12325
|
+
# exclude instances named `example-instance` by specifying
|
|
12326
|
+
# `name != example-instance`.
|
|
12327
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
12328
|
+
# For example, to find all objects with `owner` label use:
|
|
12329
|
+
# ```
|
|
12330
|
+
# labels.owner:*
|
|
12331
|
+
# ```
|
|
12332
|
+
# You can also filter nested fields. For example, you could specify
|
|
12333
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
12334
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
12335
|
+
# on nested fields to filter based onresource labels.
|
|
12336
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
12337
|
+
# parentheses. For example:
|
|
12338
|
+
# ```
|
|
12339
|
+
# (scheduling.automaticRestart = true)
|
|
12340
|
+
# (cpuPlatform = "Intel Skylake")
|
|
12341
|
+
# ```
|
|
12342
|
+
# By default, each expression is an `AND` expression. However, you
|
|
12343
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
12344
|
+
# For example:
|
|
12345
|
+
# ```
|
|
12346
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
12347
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
12348
|
+
# (scheduling.automaticRestart = true)
|
|
12349
|
+
# ```
|
|
12350
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
12351
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
12352
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
12353
|
+
# `fieldname eq unquoted literal`
|
|
12354
|
+
# `fieldname eq 'single quoted literal'`
|
|
12355
|
+
# `fieldname eq "double quoted literal"`
|
|
12356
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
12357
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
12358
|
+
# library syntax.
|
|
12359
|
+
# The literal value must match the entire field.
|
|
12360
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
12361
|
+
# you would use `name ne .*instance`.
|
|
12362
|
+
# You cannot combine constraints on multiple fields using regular
|
|
12363
|
+
# expressions.
|
|
10639
12364
|
# @param [Fixnum] max_results
|
|
10640
12365
|
# The maximum number of results per page that should be returned.
|
|
10641
12366
|
# If the number of available results is larger than `maxResults`,
|
|
@@ -10656,9 +12381,6 @@ module Google
|
|
|
10656
12381
|
# Specifies a page token to use. Set `pageToken` to the
|
|
10657
12382
|
# `nextPageToken` returned by a previous list request to get
|
|
10658
12383
|
# the next page of results.
|
|
10659
|
-
# @param [Fixnum] service_project_number
|
|
10660
|
-
# The Shared VPC service project id or service project number for which
|
|
10661
|
-
# aggregated list request is invoked for subnetworks list-usable api.
|
|
10662
12384
|
# @param [String] fields
|
|
10663
12385
|
# Selector specifying which fields to include in a partial response.
|
|
10664
12386
|
# @param [String] quota_user
|
|
@@ -10670,83 +12392,23 @@ module Google
|
|
|
10670
12392
|
# Request-specific options
|
|
10671
12393
|
#
|
|
10672
12394
|
# @yield [result, err] Result & error if block supplied
|
|
10673
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
12395
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
|
|
10674
12396
|
# @yieldparam err [StandardError] error object if request failed
|
|
10675
12397
|
#
|
|
10676
|
-
# @return [Google::Apis::ComputePreview::
|
|
12398
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
|
|
10677
12399
|
#
|
|
10678
12400
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10679
12401
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10680
12402
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10681
|
-
def
|
|
10682
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
10683
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
10684
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
12403
|
+
def list_global_vm_extension_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12404
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies', options)
|
|
12405
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
|
|
12406
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
|
|
10685
12407
|
command.params['project'] = project unless project.nil?
|
|
10686
12408
|
command.query['filter'] = filter unless filter.nil?
|
|
10687
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
10688
12409
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
10689
12410
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
10690
12411
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
10691
|
-
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
10692
|
-
command.query['fields'] = fields unless fields.nil?
|
|
10693
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10694
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10695
|
-
command.set_api_version_header "2026-10-01-preview"
|
|
10696
|
-
execute_or_queue_command(command, &block)
|
|
10697
|
-
end
|
|
10698
|
-
|
|
10699
|
-
# Purge scoped resources (zonal policies) from a global VM extension
|
|
10700
|
-
# policy, and then delete the global VM extension policy. Purge of the scoped
|
|
10701
|
-
# resources is a pre-condition of the global VM extension policy deletion.
|
|
10702
|
-
# The deletion of the global VM extension policy happens after the purge
|
|
10703
|
-
# rollout is done, so it's not a part of the LRO. It's an automatic process
|
|
10704
|
-
# that triggers in the backend.
|
|
10705
|
-
# @param [String] project
|
|
10706
|
-
# Project ID for this request.
|
|
10707
|
-
# @param [String] global_vm_extension_policy
|
|
10708
|
-
# Name of the global VM extension policy to purge scoped resources for.
|
|
10709
|
-
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
10710
|
-
# @param [String] request_id
|
|
10711
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10712
|
-
# that if you must retry your request, the server will know to ignore the
|
|
10713
|
-
# request if it has already been completed.
|
|
10714
|
-
# For example, consider a situation where you make an initial request and
|
|
10715
|
-
# the request times out. If you make the request again with the same
|
|
10716
|
-
# request ID, the server can check if original operation with the same
|
|
10717
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
10718
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
10719
|
-
# The request ID must be
|
|
10720
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
10721
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
10722
|
-
# @param [String] fields
|
|
10723
|
-
# Selector specifying which fields to include in a partial response.
|
|
10724
|
-
# @param [String] quota_user
|
|
10725
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
10726
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10727
|
-
# @param [String] user_ip
|
|
10728
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10729
|
-
# @param [Google::Apis::RequestOptions] options
|
|
10730
|
-
# Request-specific options
|
|
10731
|
-
#
|
|
10732
|
-
# @yield [result, err] Result & error if block supplied
|
|
10733
|
-
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
10734
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
10735
|
-
#
|
|
10736
|
-
# @return [Google::Apis::ComputePreview::Operation]
|
|
10737
|
-
#
|
|
10738
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10739
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10740
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10741
|
-
def delete_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10742
|
-
command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
|
|
10743
|
-
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
|
|
10744
|
-
command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
10745
|
-
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
10746
|
-
command.response_class = Google::Apis::ComputePreview::Operation
|
|
10747
|
-
command.params['project'] = project unless project.nil?
|
|
10748
|
-
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
10749
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
10750
12412
|
command.query['fields'] = fields unless fields.nil?
|
|
10751
12413
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10752
12414
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -10754,96 +12416,10 @@ module Google
|
|
|
10754
12416
|
execute_or_queue_command(command, &block)
|
|
10755
12417
|
end
|
|
10756
12418
|
|
|
10757
|
-
#
|
|
12419
|
+
# Lists all VM extensions within a specific zone for a project.
|
|
12420
|
+
# This is a read-only API.
|
|
10758
12421
|
# @param [String] project
|
|
10759
|
-
# Project ID for this request.
|
|
10760
|
-
# @param [String] global_vm_extension_policy
|
|
10761
|
-
# Name of the GlobalVmExtensionPolicy resource to return.
|
|
10762
|
-
# @param [String] fields
|
|
10763
|
-
# Selector specifying which fields to include in a partial response.
|
|
10764
|
-
# @param [String] quota_user
|
|
10765
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
10766
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10767
|
-
# @param [String] user_ip
|
|
10768
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10769
|
-
# @param [Google::Apis::RequestOptions] options
|
|
10770
|
-
# Request-specific options
|
|
10771
|
-
#
|
|
10772
|
-
# @yield [result, err] Result & error if block supplied
|
|
10773
|
-
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
|
|
10774
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
10775
|
-
#
|
|
10776
|
-
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
|
|
10777
|
-
#
|
|
10778
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10779
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10780
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10781
|
-
def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10782
|
-
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
10783
|
-
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
10784
|
-
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
|
|
10785
|
-
command.params['project'] = project unless project.nil?
|
|
10786
|
-
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
10787
|
-
command.query['fields'] = fields unless fields.nil?
|
|
10788
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10789
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10790
|
-
command.set_api_version_header "2026-10-01-preview"
|
|
10791
|
-
execute_or_queue_command(command, &block)
|
|
10792
|
-
end
|
|
10793
|
-
|
|
10794
|
-
# Creates a new project level GlobalVmExtensionPolicy.
|
|
10795
|
-
# @param [String] project
|
|
10796
|
-
# Project ID for this request.
|
|
10797
|
-
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
10798
|
-
# @param [String] request_id
|
|
10799
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
10800
|
-
# that if you must retry your request, the server will know to ignore the
|
|
10801
|
-
# request if it has already been completed.
|
|
10802
|
-
# For example, consider a situation where you make an initial request and
|
|
10803
|
-
# the request times out. If you make the request again with the same
|
|
10804
|
-
# request ID, the server can check if original operation with the same
|
|
10805
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
10806
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
10807
|
-
# The request ID must be
|
|
10808
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
10809
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
10810
|
-
# @param [String] fields
|
|
10811
|
-
# Selector specifying which fields to include in a partial response.
|
|
10812
|
-
# @param [String] quota_user
|
|
10813
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
10814
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
10815
|
-
# @param [String] user_ip
|
|
10816
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
10817
|
-
# @param [Google::Apis::RequestOptions] options
|
|
10818
|
-
# Request-specific options
|
|
10819
|
-
#
|
|
10820
|
-
# @yield [result, err] Result & error if block supplied
|
|
10821
|
-
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
10822
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
10823
|
-
#
|
|
10824
|
-
# @return [Google::Apis::ComputePreview::Operation]
|
|
10825
|
-
#
|
|
10826
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10827
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10828
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10829
|
-
def insert_global_vm_extension_policy(project, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
10830
|
-
command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies', options)
|
|
10831
|
-
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
10832
|
-
command.request_object = global_vm_extension_policy_object
|
|
10833
|
-
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
10834
|
-
command.response_class = Google::Apis::ComputePreview::Operation
|
|
10835
|
-
command.params['project'] = project unless project.nil?
|
|
10836
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
10837
|
-
command.query['fields'] = fields unless fields.nil?
|
|
10838
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
10839
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
10840
|
-
command.set_api_version_header "2026-10-01-preview"
|
|
10841
|
-
execute_or_queue_command(command, &block)
|
|
10842
|
-
end
|
|
10843
|
-
|
|
10844
|
-
# Lists global VM extension policies.
|
|
10845
|
-
# @param [String] project
|
|
10846
|
-
# Project ID for this request.
|
|
12422
|
+
# Required. Project ID for this request.
|
|
10847
12423
|
# @param [String] filter
|
|
10848
12424
|
# A filter expression that filters resources listed in the response. Most
|
|
10849
12425
|
# Compute resources support two types of filter expressions:
|
|
@@ -10925,18 +12501,18 @@ module Google
|
|
|
10925
12501
|
# Request-specific options
|
|
10926
12502
|
#
|
|
10927
12503
|
# @yield [result, err] Result & error if block supplied
|
|
10928
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
12504
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
|
|
10929
12505
|
# @yieldparam err [StandardError] error object if request failed
|
|
10930
12506
|
#
|
|
10931
|
-
# @return [Google::Apis::ComputePreview::
|
|
12507
|
+
# @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
|
|
10932
12508
|
#
|
|
10933
12509
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
10934
12510
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
10935
12511
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
10936
|
-
def
|
|
10937
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
|
10938
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
10939
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
12512
|
+
def list_global_vm_extension_policy_vm_extensions(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
12513
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensions', options)
|
|
12514
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
|
|
12515
|
+
command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
|
|
10940
12516
|
command.params['project'] = project unless project.nil?
|
|
10941
12517
|
command.query['filter'] = filter unless filter.nil?
|
|
10942
12518
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -20015,70 +21591,6 @@ module Google
|
|
|
20015
21591
|
execute_or_queue_command(command, &block)
|
|
20016
21592
|
end
|
|
20017
21593
|
|
|
20018
|
-
# Initiates diagnostic troubleshooting on the specified instance.
|
|
20019
|
-
# This operation cannot be cancelled.
|
|
20020
|
-
# @param [String] project
|
|
20021
|
-
# Project ID for this request.
|
|
20022
|
-
# @param [String] zone
|
|
20023
|
-
# The name of the zone for this request.
|
|
20024
|
-
# @param [String] instance
|
|
20025
|
-
# Name of the instance scoping this request.
|
|
20026
|
-
# @param [String] params_end_time
|
|
20027
|
-
# Input only. Timestamp representing the end of the troubleshooting window
|
|
20028
|
-
# in RFC3339
|
|
20029
|
-
# text format. If omitted, defaults to 'now'.
|
|
20030
|
-
# @param [String] params_start_time
|
|
20031
|
-
# Input only. Timestamp representing the beginning of the troubleshooting window
|
|
20032
|
-
# in RFC3339
|
|
20033
|
-
# text format. If omitted, defaults to the last 12 hours.
|
|
20034
|
-
# @param [String] request_id
|
|
20035
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
20036
|
-
# that if you must retry your request, the server will know to ignore the
|
|
20037
|
-
# request if it has already been completed.
|
|
20038
|
-
# For example, consider a situation where you make an initial request and
|
|
20039
|
-
# the request times out. If you make the request again with the same
|
|
20040
|
-
# request ID, the server can check if original operation with the same
|
|
20041
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
20042
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
20043
|
-
# The request ID must be
|
|
20044
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
20045
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
20046
|
-
# @param [String] fields
|
|
20047
|
-
# Selector specifying which fields to include in a partial response.
|
|
20048
|
-
# @param [String] quota_user
|
|
20049
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
20050
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
20051
|
-
# @param [String] user_ip
|
|
20052
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
20053
|
-
# @param [Google::Apis::RequestOptions] options
|
|
20054
|
-
# Request-specific options
|
|
20055
|
-
#
|
|
20056
|
-
# @yield [result, err] Result & error if block supplied
|
|
20057
|
-
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
20058
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
20059
|
-
#
|
|
20060
|
-
# @return [Google::Apis::ComputePreview::Operation]
|
|
20061
|
-
#
|
|
20062
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
20063
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
20064
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
20065
|
-
def troubleshoot_instance(project, zone, instance, params_end_time: nil, params_start_time: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
20066
|
-
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/troubleshoot', options)
|
|
20067
|
-
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
20068
|
-
command.response_class = Google::Apis::ComputePreview::Operation
|
|
20069
|
-
command.params['project'] = project unless project.nil?
|
|
20070
|
-
command.params['zone'] = zone unless zone.nil?
|
|
20071
|
-
command.params['instance'] = instance unless instance.nil?
|
|
20072
|
-
command.query['params.endTime'] = params_end_time unless params_end_time.nil?
|
|
20073
|
-
command.query['params.startTime'] = params_start_time unless params_start_time.nil?
|
|
20074
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
20075
|
-
command.query['fields'] = fields unless fields.nil?
|
|
20076
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
20077
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
20078
|
-
command.set_api_version_header "2026-10-01-preview"
|
|
20079
|
-
execute_or_queue_command(command, &block)
|
|
20080
|
-
end
|
|
20081
|
-
|
|
20082
21594
|
# Updates an instance only if the necessary resources are available. This
|
|
20083
21595
|
# method can update only a specific set of instance properties. See
|
|
20084
21596
|
# Updating a running instance for a list of updatable instance
|
|
@@ -28719,6 +30231,61 @@ module Google
|
|
|
28719
30231
|
execute_or_queue_command(command, &block)
|
|
28720
30232
|
end
|
|
28721
30233
|
|
|
30234
|
+
# Updates the network profile of the specified network.
|
|
30235
|
+
# Currently only the following operations are supported:
|
|
30236
|
+
# - Removing a Regionally Bound Network Profile
|
|
30237
|
+
# @param [String] project
|
|
30238
|
+
# Project ID for this request.
|
|
30239
|
+
# @param [String] network
|
|
30240
|
+
# Name of the network resource to update the network profile for.
|
|
30241
|
+
# @param [Google::Apis::ComputePreview::NetworksUpdateNetworkProfileRequest] networks_update_network_profile_request_object
|
|
30242
|
+
# @param [String] request_id
|
|
30243
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
30244
|
+
# that if you must retry your request, the server will know to ignore the
|
|
30245
|
+
# request if it has already been completed.
|
|
30246
|
+
# For example, consider a situation where you make an initial request and
|
|
30247
|
+
# the request times out. If you make the request again with the same
|
|
30248
|
+
# request ID, the server can check if original operation with the same
|
|
30249
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
30250
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
30251
|
+
# The request ID must be
|
|
30252
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
30253
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
30254
|
+
# @param [String] fields
|
|
30255
|
+
# Selector specifying which fields to include in a partial response.
|
|
30256
|
+
# @param [String] quota_user
|
|
30257
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30258
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30259
|
+
# @param [String] user_ip
|
|
30260
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
30261
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30262
|
+
# Request-specific options
|
|
30263
|
+
#
|
|
30264
|
+
# @yield [result, err] Result & error if block supplied
|
|
30265
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
30266
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30267
|
+
#
|
|
30268
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
30269
|
+
#
|
|
30270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30273
|
+
def update_network_network_profile(project, network, networks_update_network_profile_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
30274
|
+
command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/updateNetworkProfile', options)
|
|
30275
|
+
command.request_representation = Google::Apis::ComputePreview::NetworksUpdateNetworkProfileRequest::Representation
|
|
30276
|
+
command.request_object = networks_update_network_profile_request_object
|
|
30277
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
30278
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
30279
|
+
command.params['project'] = project unless project.nil?
|
|
30280
|
+
command.params['network'] = network unless network.nil?
|
|
30281
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
30282
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30284
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
30285
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
30286
|
+
execute_or_queue_command(command, &block)
|
|
30287
|
+
end
|
|
30288
|
+
|
|
28722
30289
|
# Updates the specified network peering with the data included in the
|
|
28723
30290
|
# request. You can only modify the NetworkPeering.export_custom_routes field
|
|
28724
30291
|
# and the NetworkPeering.import_custom_routes field.
|
|
@@ -30508,20 +32075,543 @@ module Google
|
|
|
30508
32075
|
# Request-specific options
|
|
30509
32076
|
#
|
|
30510
32077
|
# @yield [result, err] Result & error if block supplied
|
|
30511
|
-
# @yieldparam result [Google::Apis::ComputePreview::NodeTypeList] parsed result object
|
|
32078
|
+
# @yieldparam result [Google::Apis::ComputePreview::NodeTypeList] parsed result object
|
|
32079
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32080
|
+
#
|
|
32081
|
+
# @return [Google::Apis::ComputePreview::NodeTypeList]
|
|
32082
|
+
#
|
|
32083
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32084
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32085
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32086
|
+
def list_node_types(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32087
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/nodeTypes', options)
|
|
32088
|
+
command.response_representation = Google::Apis::ComputePreview::NodeTypeList::Representation
|
|
32089
|
+
command.response_class = Google::Apis::ComputePreview::NodeTypeList
|
|
32090
|
+
command.params['project'] = project unless project.nil?
|
|
32091
|
+
command.params['zone'] = zone unless zone.nil?
|
|
32092
|
+
command.query['filter'] = filter unless filter.nil?
|
|
32093
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
32094
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
32095
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32096
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32097
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32098
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32099
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32100
|
+
execute_or_queue_command(command, &block)
|
|
32101
|
+
end
|
|
32102
|
+
|
|
32103
|
+
# Retrieves the list of all organization level VM Extension Policy resources
|
|
32104
|
+
# available to the specified organization.
|
|
32105
|
+
# To prevent failure, it's recommended that you set the
|
|
32106
|
+
# `returnPartialSuccess` parameter to `true`.
|
|
32107
|
+
# @param [String] organization
|
|
32108
|
+
# Organization ID for this request.
|
|
32109
|
+
# @param [String] filter
|
|
32110
|
+
# A filter expression that filters resources listed in the response. Most
|
|
32111
|
+
# Compute resources support two types of filter expressions:
|
|
32112
|
+
# expressions that support regular expressions and expressions that follow
|
|
32113
|
+
# API improvement proposal AIP-160.
|
|
32114
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
32115
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
32116
|
+
# operator, and the value that you want to use for filtering. The value
|
|
32117
|
+
# must be a string, a number, or a boolean. The operator
|
|
32118
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
32119
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
32120
|
+
# exclude instances named `example-instance` by specifying
|
|
32121
|
+
# `name != example-instance`.
|
|
32122
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
32123
|
+
# For example, to find all objects with `owner` label use:
|
|
32124
|
+
# ```
|
|
32125
|
+
# labels.owner:*
|
|
32126
|
+
# ```
|
|
32127
|
+
# You can also filter nested fields. For example, you could specify
|
|
32128
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
32129
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
32130
|
+
# on nested fields to filter based onresource labels.
|
|
32131
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
32132
|
+
# parentheses. For example:
|
|
32133
|
+
# ```
|
|
32134
|
+
# (scheduling.automaticRestart = true)
|
|
32135
|
+
# (cpuPlatform = "Intel Skylake")
|
|
32136
|
+
# ```
|
|
32137
|
+
# By default, each expression is an `AND` expression. However, you
|
|
32138
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
32139
|
+
# For example:
|
|
32140
|
+
# ```
|
|
32141
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
32142
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
32143
|
+
# (scheduling.automaticRestart = true)
|
|
32144
|
+
# ```
|
|
32145
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
32146
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
32147
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
32148
|
+
# `fieldname eq unquoted literal`
|
|
32149
|
+
# `fieldname eq 'single quoted literal'`
|
|
32150
|
+
# `fieldname eq "double quoted literal"`
|
|
32151
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
32152
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
32153
|
+
# library syntax.
|
|
32154
|
+
# The literal value must match the entire field.
|
|
32155
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
32156
|
+
# you would use `name ne .*instance`.
|
|
32157
|
+
# You cannot combine constraints on multiple fields using regular
|
|
32158
|
+
# expressions.
|
|
32159
|
+
# @param [Boolean] include_all_scopes
|
|
32160
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
|
32161
|
+
# global) should be included in the response. For new resource types added
|
|
32162
|
+
# after this field, the flag has no effect as new resource types will always
|
|
32163
|
+
# include every visible scope for each scope type in response. For resource
|
|
32164
|
+
# types which predate this field, if this flag is omitted or false, only
|
|
32165
|
+
# scopes of the scope types where the resource type is expected to be found
|
|
32166
|
+
# will be included.
|
|
32167
|
+
# @param [Fixnum] max_results
|
|
32168
|
+
# The maximum number of results per page that should be returned.
|
|
32169
|
+
# If the number of available results is larger than `maxResults`,
|
|
32170
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
32171
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
32172
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
32173
|
+
# @param [String] order_by
|
|
32174
|
+
# Sorts list results by a certain order. By default, results
|
|
32175
|
+
# are returned in alphanumerical order based on the resource name.
|
|
32176
|
+
# You can also sort results in descending order based on the creation
|
|
32177
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
32178
|
+
# results based on the `creationTimestamp` field in
|
|
32179
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
32180
|
+
# resources like operations so that the newest operation is returned first.
|
|
32181
|
+
# Currently, only sorting by `name` or
|
|
32182
|
+
# `creationTimestamp desc` is supported.
|
|
32183
|
+
# @param [String] page_token
|
|
32184
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
32185
|
+
# `nextPageToken` returned by a previous list request to get
|
|
32186
|
+
# the next page of results.
|
|
32187
|
+
# @param [Fixnum] service_project_number
|
|
32188
|
+
# The Shared VPC service project id or service project number for which
|
|
32189
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
|
32190
|
+
# @param [String] fields
|
|
32191
|
+
# Selector specifying which fields to include in a partial response.
|
|
32192
|
+
# @param [String] quota_user
|
|
32193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32195
|
+
# @param [String] user_ip
|
|
32196
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32197
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32198
|
+
# Request-specific options
|
|
32199
|
+
#
|
|
32200
|
+
# @yield [result, err] Result & error if block supplied
|
|
32201
|
+
# @yieldparam result [Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse] parsed result object
|
|
32202
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32203
|
+
#
|
|
32204
|
+
# @return [Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse]
|
|
32205
|
+
#
|
|
32206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32209
|
+
def aggregated_organization_global_vm_extension_policy_list(organization, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32210
|
+
command = make_simple_command(:get, '{+organization}/aggregated/vmExtensionPolicies', options)
|
|
32211
|
+
command.response_representation = Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse::Representation
|
|
32212
|
+
command.response_class = Google::Apis::ComputePreview::OrganizationVmExtensionPolicyAggregatedListResponse
|
|
32213
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32214
|
+
command.query['filter'] = filter unless filter.nil?
|
|
32215
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
|
32216
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
32217
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
32218
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32219
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
|
32220
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32222
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32223
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32224
|
+
execute_or_queue_command(command, &block)
|
|
32225
|
+
end
|
|
32226
|
+
|
|
32227
|
+
# Purge scoped resources (zonal policies) from an organization level global
|
|
32228
|
+
# VM extension policy, and then delete the global VM extension policy. Purge
|
|
32229
|
+
# of the scoped resources is a pre-condition of the global VM extension
|
|
32230
|
+
# policy deletion. The deletion of the global VM extension policy happens
|
|
32231
|
+
# after the purge rollout is done, so it's not a part of the LRO. It's an
|
|
32232
|
+
# automatic process that triggers in the backend.
|
|
32233
|
+
# @param [String] organization
|
|
32234
|
+
# Organization ID for this request.
|
|
32235
|
+
# @param [String] global_vm_extension_policy
|
|
32236
|
+
# Name of the global VM extension policy to purge scoped resources for.
|
|
32237
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput] global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
32238
|
+
# @param [String] request_id
|
|
32239
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
32240
|
+
# that if you must retry your request, the server will know to ignore the
|
|
32241
|
+
# request if it has already been completed.
|
|
32242
|
+
# For example, consider a situation where you make an initial request and
|
|
32243
|
+
# the request times out. If you make the request again with the same
|
|
32244
|
+
# request ID, the server can check if original operation with the same
|
|
32245
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
32246
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
32247
|
+
# The request ID must be
|
|
32248
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
32249
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
32250
|
+
# @param [String] fields
|
|
32251
|
+
# Selector specifying which fields to include in a partial response.
|
|
32252
|
+
# @param [String] quota_user
|
|
32253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32255
|
+
# @param [String] user_ip
|
|
32256
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32257
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32258
|
+
# Request-specific options
|
|
32259
|
+
#
|
|
32260
|
+
# @yield [result, err] Result & error if block supplied
|
|
32261
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
32262
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32263
|
+
#
|
|
32264
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
32265
|
+
#
|
|
32266
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32267
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32268
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32269
|
+
def delete_organization_global_vm_extension_policy(organization, global_vm_extension_policy, global_vm_extension_policy_rollout_operation_rollout_input_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32270
|
+
command = make_simple_command(:post, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}/delete', options)
|
|
32271
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyRolloutOperationRolloutInput::Representation
|
|
32272
|
+
command.request_object = global_vm_extension_policy_rollout_operation_rollout_input_object
|
|
32273
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
32274
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
32275
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32276
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
32277
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
32278
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32280
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32281
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32282
|
+
execute_or_queue_command(command, &block)
|
|
32283
|
+
end
|
|
32284
|
+
|
|
32285
|
+
# Gets details of an organization level GlobalVmExtensionPolicy.
|
|
32286
|
+
# @param [String] organization
|
|
32287
|
+
# Organization ID for this request.
|
|
32288
|
+
# @param [String] global_vm_extension_policy
|
|
32289
|
+
# Name of the GlobalVmExtensionPolicy resource to return.
|
|
32290
|
+
# @param [String] fields
|
|
32291
|
+
# Selector specifying which fields to include in a partial response.
|
|
32292
|
+
# @param [String] quota_user
|
|
32293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32295
|
+
# @param [String] user_ip
|
|
32296
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32297
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32298
|
+
# Request-specific options
|
|
32299
|
+
#
|
|
32300
|
+
# @yield [result, err] Result & error if block supplied
|
|
32301
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] parsed result object
|
|
32302
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32303
|
+
#
|
|
32304
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicy]
|
|
32305
|
+
#
|
|
32306
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32307
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32308
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32309
|
+
def get_organization_global_vm_extension_policy(organization, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32310
|
+
command = make_simple_command(:get, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
32311
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
32312
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicy
|
|
32313
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32314
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
32315
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32317
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32318
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32319
|
+
execute_or_queue_command(command, &block)
|
|
32320
|
+
end
|
|
32321
|
+
|
|
32322
|
+
# Retrieves details of a specific VM extension.
|
|
32323
|
+
# @param [String] organization
|
|
32324
|
+
# Organization ID for this request.
|
|
32325
|
+
# @param [String] extension_name
|
|
32326
|
+
# Required. Name of the VM extension for this request.
|
|
32327
|
+
# @param [String] fields
|
|
32328
|
+
# Selector specifying which fields to include in a partial response.
|
|
32329
|
+
# @param [String] quota_user
|
|
32330
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32331
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32332
|
+
# @param [String] user_ip
|
|
32333
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32334
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32335
|
+
# Request-specific options
|
|
32336
|
+
#
|
|
32337
|
+
# @yield [result, err] Result & error if block supplied
|
|
32338
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtension] parsed result object
|
|
32339
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32340
|
+
#
|
|
32341
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtension]
|
|
32342
|
+
#
|
|
32343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32346
|
+
def get_organization_global_vm_extension_policy_vm_extension(organization, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32347
|
+
command = make_simple_command(:get, '{+organization}/global/vmExtensions/{extensionName}', options)
|
|
32348
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtension::Representation
|
|
32349
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtension
|
|
32350
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32351
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
32352
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32354
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32355
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32356
|
+
execute_or_queue_command(command, &block)
|
|
32357
|
+
end
|
|
32358
|
+
|
|
32359
|
+
# Creates a new organization level GlobalVmExtensionPolicy.
|
|
32360
|
+
# @param [String] organization
|
|
32361
|
+
# Organization ID for this request.
|
|
32362
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
32363
|
+
# @param [String] request_id
|
|
32364
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
32365
|
+
# that if you must retry your request, the server will know to ignore the
|
|
32366
|
+
# request if it has already been completed.
|
|
32367
|
+
# For example, consider a situation where you make an initial request and
|
|
32368
|
+
# the request times out. If you make the request again with the same
|
|
32369
|
+
# request ID, the server can check if original operation with the same
|
|
32370
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
32371
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
32372
|
+
# The request ID must be
|
|
32373
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
32374
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
32375
|
+
# @param [String] fields
|
|
32376
|
+
# Selector specifying which fields to include in a partial response.
|
|
32377
|
+
# @param [String] quota_user
|
|
32378
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32379
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32380
|
+
# @param [String] user_ip
|
|
32381
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32382
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32383
|
+
# Request-specific options
|
|
32384
|
+
#
|
|
32385
|
+
# @yield [result, err] Result & error if block supplied
|
|
32386
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
32387
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32388
|
+
#
|
|
32389
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
32390
|
+
#
|
|
32391
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32392
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32393
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32394
|
+
def insert_organization_global_vm_extension_policy(organization, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32395
|
+
command = make_simple_command(:post, '{+organization}/global/vmExtensionPolicies', options)
|
|
32396
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
32397
|
+
command.request_object = global_vm_extension_policy_object
|
|
32398
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
32399
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
32400
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32401
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
32402
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32403
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32404
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32405
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32406
|
+
execute_or_queue_command(command, &block)
|
|
32407
|
+
end
|
|
32408
|
+
|
|
32409
|
+
# Lists organization level GlobalVmExtensionPolicies.
|
|
32410
|
+
# @param [String] organization
|
|
32411
|
+
# Organization ID for this request.
|
|
32412
|
+
# @param [String] filter
|
|
32413
|
+
# A filter expression that filters resources listed in the response. Most
|
|
32414
|
+
# Compute resources support two types of filter expressions:
|
|
32415
|
+
# expressions that support regular expressions and expressions that follow
|
|
32416
|
+
# API improvement proposal AIP-160.
|
|
32417
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
32418
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
32419
|
+
# operator, and the value that you want to use for filtering. The value
|
|
32420
|
+
# must be a string, a number, or a boolean. The operator
|
|
32421
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
32422
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
32423
|
+
# exclude instances named `example-instance` by specifying
|
|
32424
|
+
# `name != example-instance`.
|
|
32425
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
32426
|
+
# For example, to find all objects with `owner` label use:
|
|
32427
|
+
# ```
|
|
32428
|
+
# labels.owner:*
|
|
32429
|
+
# ```
|
|
32430
|
+
# You can also filter nested fields. For example, you could specify
|
|
32431
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
32432
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
32433
|
+
# on nested fields to filter based onresource labels.
|
|
32434
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
32435
|
+
# parentheses. For example:
|
|
32436
|
+
# ```
|
|
32437
|
+
# (scheduling.automaticRestart = true)
|
|
32438
|
+
# (cpuPlatform = "Intel Skylake")
|
|
32439
|
+
# ```
|
|
32440
|
+
# By default, each expression is an `AND` expression. However, you
|
|
32441
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
32442
|
+
# For example:
|
|
32443
|
+
# ```
|
|
32444
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
32445
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
32446
|
+
# (scheduling.automaticRestart = true)
|
|
32447
|
+
# ```
|
|
32448
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
32449
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
32450
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
32451
|
+
# `fieldname eq unquoted literal`
|
|
32452
|
+
# `fieldname eq 'single quoted literal'`
|
|
32453
|
+
# `fieldname eq "double quoted literal"`
|
|
32454
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
32455
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
32456
|
+
# library syntax.
|
|
32457
|
+
# The literal value must match the entire field.
|
|
32458
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
32459
|
+
# you would use `name ne .*instance`.
|
|
32460
|
+
# You cannot combine constraints on multiple fields using regular
|
|
32461
|
+
# expressions.
|
|
32462
|
+
# @param [Fixnum] max_results
|
|
32463
|
+
# The maximum number of results per page that should be returned.
|
|
32464
|
+
# If the number of available results is larger than `maxResults`,
|
|
32465
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
32466
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
32467
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
32468
|
+
# @param [String] order_by
|
|
32469
|
+
# Sorts list results by a certain order. By default, results
|
|
32470
|
+
# are returned in alphanumerical order based on the resource name.
|
|
32471
|
+
# You can also sort results in descending order based on the creation
|
|
32472
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
32473
|
+
# results based on the `creationTimestamp` field in
|
|
32474
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
32475
|
+
# resources like operations so that the newest operation is returned first.
|
|
32476
|
+
# Currently, only sorting by `name` or
|
|
32477
|
+
# `creationTimestamp desc` is supported.
|
|
32478
|
+
# @param [String] page_token
|
|
32479
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
32480
|
+
# `nextPageToken` returned by a previous list request to get
|
|
32481
|
+
# the next page of results.
|
|
32482
|
+
# @param [String] fields
|
|
32483
|
+
# Selector specifying which fields to include in a partial response.
|
|
32484
|
+
# @param [String] quota_user
|
|
32485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32487
|
+
# @param [String] user_ip
|
|
32488
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32489
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32490
|
+
# Request-specific options
|
|
32491
|
+
#
|
|
32492
|
+
# @yield [result, err] Result & error if block supplied
|
|
32493
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList] parsed result object
|
|
32494
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32495
|
+
#
|
|
32496
|
+
# @return [Google::Apis::ComputePreview::GlobalVmExtensionPolicyList]
|
|
32497
|
+
#
|
|
32498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32501
|
+
def list_organization_global_vm_extension_policies(organization, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32502
|
+
command = make_simple_command(:get, '{+organization}/global/vmExtensionPolicies', options)
|
|
32503
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList::Representation
|
|
32504
|
+
command.response_class = Google::Apis::ComputePreview::GlobalVmExtensionPolicyList
|
|
32505
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32506
|
+
command.query['filter'] = filter unless filter.nil?
|
|
32507
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
32508
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
32509
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32510
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32512
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32513
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32514
|
+
execute_or_queue_command(command, &block)
|
|
32515
|
+
end
|
|
32516
|
+
|
|
32517
|
+
# Lists all VM extensions within an organization.
|
|
32518
|
+
# This is a read-only API.
|
|
32519
|
+
# @param [String] organization
|
|
32520
|
+
# Required. Organization ID for this request.
|
|
32521
|
+
# @param [String] filter
|
|
32522
|
+
# A filter expression that filters resources listed in the response. Most
|
|
32523
|
+
# Compute resources support two types of filter expressions:
|
|
32524
|
+
# expressions that support regular expressions and expressions that follow
|
|
32525
|
+
# API improvement proposal AIP-160.
|
|
32526
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
32527
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
32528
|
+
# operator, and the value that you want to use for filtering. The value
|
|
32529
|
+
# must be a string, a number, or a boolean. The operator
|
|
32530
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
32531
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
32532
|
+
# exclude instances named `example-instance` by specifying
|
|
32533
|
+
# `name != example-instance`.
|
|
32534
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
32535
|
+
# For example, to find all objects with `owner` label use:
|
|
32536
|
+
# ```
|
|
32537
|
+
# labels.owner:*
|
|
32538
|
+
# ```
|
|
32539
|
+
# You can also filter nested fields. For example, you could specify
|
|
32540
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
32541
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
32542
|
+
# on nested fields to filter based onresource labels.
|
|
32543
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
32544
|
+
# parentheses. For example:
|
|
32545
|
+
# ```
|
|
32546
|
+
# (scheduling.automaticRestart = true)
|
|
32547
|
+
# (cpuPlatform = "Intel Skylake")
|
|
32548
|
+
# ```
|
|
32549
|
+
# By default, each expression is an `AND` expression. However, you
|
|
32550
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
32551
|
+
# For example:
|
|
32552
|
+
# ```
|
|
32553
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
32554
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
32555
|
+
# (scheduling.automaticRestart = true)
|
|
32556
|
+
# ```
|
|
32557
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
32558
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
32559
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
32560
|
+
# `fieldname eq unquoted literal`
|
|
32561
|
+
# `fieldname eq 'single quoted literal'`
|
|
32562
|
+
# `fieldname eq "double quoted literal"`
|
|
32563
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
32564
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
32565
|
+
# library syntax.
|
|
32566
|
+
# The literal value must match the entire field.
|
|
32567
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
32568
|
+
# you would use `name ne .*instance`.
|
|
32569
|
+
# You cannot combine constraints on multiple fields using regular
|
|
32570
|
+
# expressions.
|
|
32571
|
+
# @param [Fixnum] max_results
|
|
32572
|
+
# The maximum number of results per page that should be returned.
|
|
32573
|
+
# If the number of available results is larger than `maxResults`,
|
|
32574
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
32575
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
32576
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
32577
|
+
# @param [String] order_by
|
|
32578
|
+
# Sorts list results by a certain order. By default, results
|
|
32579
|
+
# are returned in alphanumerical order based on the resource name.
|
|
32580
|
+
# You can also sort results in descending order based on the creation
|
|
32581
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
32582
|
+
# results based on the `creationTimestamp` field in
|
|
32583
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
32584
|
+
# resources like operations so that the newest operation is returned first.
|
|
32585
|
+
# Currently, only sorting by `name` or
|
|
32586
|
+
# `creationTimestamp desc` is supported.
|
|
32587
|
+
# @param [String] page_token
|
|
32588
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
32589
|
+
# `nextPageToken` returned by a previous list request to get
|
|
32590
|
+
# the next page of results.
|
|
32591
|
+
# @param [String] fields
|
|
32592
|
+
# Selector specifying which fields to include in a partial response.
|
|
32593
|
+
# @param [String] quota_user
|
|
32594
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32595
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32596
|
+
# @param [String] user_ip
|
|
32597
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32598
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32599
|
+
# Request-specific options
|
|
32600
|
+
#
|
|
32601
|
+
# @yield [result, err] Result & error if block supplied
|
|
32602
|
+
# @yieldparam result [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse] parsed result object
|
|
30512
32603
|
# @yieldparam err [StandardError] error object if request failed
|
|
30513
32604
|
#
|
|
30514
|
-
# @return [Google::Apis::ComputePreview::
|
|
32605
|
+
# @return [Google::Apis::ComputePreview::GlobalListVmExtensionsResponse]
|
|
30515
32606
|
#
|
|
30516
32607
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30517
32608
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30518
32609
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30519
|
-
def
|
|
30520
|
-
command = make_simple_command(:get, '
|
|
30521
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
30522
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
30523
|
-
command.params['
|
|
30524
|
-
command.params['zone'] = zone unless zone.nil?
|
|
32610
|
+
def list_organization_global_vm_extension_policy_vm_extensions(organization, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32611
|
+
command = make_simple_command(:get, '{+organization}/global/vmExtensions', options)
|
|
32612
|
+
command.response_representation = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse::Representation
|
|
32613
|
+
command.response_class = Google::Apis::ComputePreview::GlobalListVmExtensionsResponse
|
|
32614
|
+
command.params['organization'] = organization unless organization.nil?
|
|
30525
32615
|
command.query['filter'] = filter unless filter.nil?
|
|
30526
32616
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
30527
32617
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -30533,6 +32623,59 @@ module Google
|
|
|
30533
32623
|
execute_or_queue_command(command, &block)
|
|
30534
32624
|
end
|
|
30535
32625
|
|
|
32626
|
+
# Updates an organization level GlobalVmExtensionPolicy.
|
|
32627
|
+
# @param [String] organization
|
|
32628
|
+
# Organization ID for this request.
|
|
32629
|
+
# @param [String] global_vm_extension_policy
|
|
32630
|
+
# Name of the global VM extension policy to update.
|
|
32631
|
+
# @param [Google::Apis::ComputePreview::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
|
32632
|
+
# @param [String] request_id
|
|
32633
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
32634
|
+
# that if you must retry your request, the server will know to ignore the
|
|
32635
|
+
# request if it has already been completed.
|
|
32636
|
+
# For example, consider a situation where you make an initial request and
|
|
32637
|
+
# the request times out. If you make the request again with the same
|
|
32638
|
+
# request ID, the server can check if original operation with the same
|
|
32639
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
32640
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
32641
|
+
# The request ID must be
|
|
32642
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
32643
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
32644
|
+
# @param [String] fields
|
|
32645
|
+
# Selector specifying which fields to include in a partial response.
|
|
32646
|
+
# @param [String] quota_user
|
|
32647
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32648
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32649
|
+
# @param [String] user_ip
|
|
32650
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
32651
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32652
|
+
# Request-specific options
|
|
32653
|
+
#
|
|
32654
|
+
# @yield [result, err] Result & error if block supplied
|
|
32655
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
32656
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32657
|
+
#
|
|
32658
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
32659
|
+
#
|
|
32660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32663
|
+
def update_organization_global_vm_extension_policy(organization, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
32664
|
+
command = make_simple_command(:patch, '{+organization}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
|
32665
|
+
command.request_representation = Google::Apis::ComputePreview::GlobalVmExtensionPolicy::Representation
|
|
32666
|
+
command.request_object = global_vm_extension_policy_object
|
|
32667
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
32668
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
32669
|
+
command.params['organization'] = organization unless organization.nil?
|
|
32670
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
|
32671
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
32672
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32674
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
32675
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
32676
|
+
execute_or_queue_command(command, &block)
|
|
32677
|
+
end
|
|
32678
|
+
|
|
30536
32679
|
# Inserts an association for the specified security policy.
|
|
30537
32680
|
# This has billing implications. Projects in the hierarchy with effective
|
|
30538
32681
|
# hierarchical security policies will be automatically enrolled into Cloud
|
|
@@ -31389,12 +33532,253 @@ module Google
|
|
|
31389
33532
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31390
33533
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31391
33534
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31392
|
-
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
31393
|
-
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
|
33535
|
+
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33536
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
|
33537
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
33538
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
33539
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
33540
|
+
command.query['name'] = name unless name.nil?
|
|
33541
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
33542
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33544
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33545
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33546
|
+
execute_or_queue_command(command, &block)
|
|
33547
|
+
end
|
|
33548
|
+
|
|
33549
|
+
# Deletes a rule at the specified priority.
|
|
33550
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
33551
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
33552
|
+
# now disabled for most organizations. Use firewallPolicies.removeRule
|
|
33553
|
+
# instead.
|
|
33554
|
+
# @param [String] security_policy
|
|
33555
|
+
# Name of the security policy to update.
|
|
33556
|
+
# @param [Fixnum] priority
|
|
33557
|
+
# The priority of the rule to remove from the security policy.
|
|
33558
|
+
# @param [String] request_id
|
|
33559
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
33560
|
+
# that if you must retry your request, the server will know to ignore the
|
|
33561
|
+
# request if it has already been completed.
|
|
33562
|
+
# For example, consider a situation where you make an initial request and
|
|
33563
|
+
# the request times out. If you make the request again with the same
|
|
33564
|
+
# request ID, the server can check if original operation with the same
|
|
33565
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
33566
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
33567
|
+
# The request ID must be
|
|
33568
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
33569
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
33570
|
+
# @param [String] fields
|
|
33571
|
+
# Selector specifying which fields to include in a partial response.
|
|
33572
|
+
# @param [String] quota_user
|
|
33573
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33574
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33575
|
+
# @param [String] user_ip
|
|
33576
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33577
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33578
|
+
# Request-specific options
|
|
33579
|
+
#
|
|
33580
|
+
# @yield [result, err] Result & error if block supplied
|
|
33581
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
33582
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33583
|
+
#
|
|
33584
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
33585
|
+
#
|
|
33586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33589
|
+
def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33590
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
|
|
33591
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
33592
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
33593
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
33594
|
+
command.query['priority'] = priority unless priority.nil?
|
|
33595
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
33596
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33598
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33599
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33600
|
+
execute_or_queue_command(command, &block)
|
|
33601
|
+
end
|
|
33602
|
+
|
|
33603
|
+
# Deletes a specified zone VM extension policy within an organization.
|
|
33604
|
+
# @param [String] organization
|
|
33605
|
+
# Organization ID for this request.
|
|
33606
|
+
# @param [String] zone
|
|
33607
|
+
# Name of the zone for this request.
|
|
33608
|
+
# @param [String] vm_extension_policy
|
|
33609
|
+
# Name of the zone VM extension policy to delete.
|
|
33610
|
+
# @param [String] request_id
|
|
33611
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
33612
|
+
# that if you must retry your request, the server will know to ignore the
|
|
33613
|
+
# request if it has already been completed.
|
|
33614
|
+
# For example, consider a situation where you make an initial request and
|
|
33615
|
+
# the request times out. If you make the request again with the same
|
|
33616
|
+
# request ID, the server can check if original operation with the same
|
|
33617
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
33618
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
33619
|
+
# The request ID must be
|
|
33620
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
33621
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
33622
|
+
# @param [String] fields
|
|
33623
|
+
# Selector specifying which fields to include in a partial response.
|
|
33624
|
+
# @param [String] quota_user
|
|
33625
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33626
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33627
|
+
# @param [String] user_ip
|
|
33628
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33629
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33630
|
+
# Request-specific options
|
|
33631
|
+
#
|
|
33632
|
+
# @yield [result, err] Result & error if block supplied
|
|
33633
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
33634
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33635
|
+
#
|
|
33636
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
33637
|
+
#
|
|
33638
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33639
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33640
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33641
|
+
def delete_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33642
|
+
command = make_simple_command(:delete, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
33643
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
33644
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
33645
|
+
command.params['organization'] = organization unless organization.nil?
|
|
33646
|
+
command.params['zone'] = zone unless zone.nil?
|
|
33647
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
33648
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
33649
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33650
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33651
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33652
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33653
|
+
execute_or_queue_command(command, &block)
|
|
33654
|
+
end
|
|
33655
|
+
|
|
33656
|
+
# Retrieves details of a specific zone VM extension policy within an
|
|
33657
|
+
# organization.
|
|
33658
|
+
# @param [String] organization
|
|
33659
|
+
# Organization ID for this request.
|
|
33660
|
+
# @param [String] zone
|
|
33661
|
+
# Name of the zone for this request.
|
|
33662
|
+
# @param [String] vm_extension_policy
|
|
33663
|
+
# Name of the VM extension policy resource to return.
|
|
33664
|
+
# @param [String] fields
|
|
33665
|
+
# Selector specifying which fields to include in a partial response.
|
|
33666
|
+
# @param [String] quota_user
|
|
33667
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33668
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33669
|
+
# @param [String] user_ip
|
|
33670
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33671
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33672
|
+
# Request-specific options
|
|
33673
|
+
#
|
|
33674
|
+
# @yield [result, err] Result & error if block supplied
|
|
33675
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
|
|
33676
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33677
|
+
#
|
|
33678
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicy]
|
|
33679
|
+
#
|
|
33680
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33681
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33682
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33683
|
+
def get_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33684
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
33685
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
33686
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
|
|
33687
|
+
command.params['organization'] = organization unless organization.nil?
|
|
33688
|
+
command.params['zone'] = zone unless zone.nil?
|
|
33689
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
33690
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33691
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33692
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33693
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33694
|
+
execute_or_queue_command(command, &block)
|
|
33695
|
+
end
|
|
33696
|
+
|
|
33697
|
+
# Retrieves details of a specific VM extension within an organization.
|
|
33698
|
+
# @param [String] organization
|
|
33699
|
+
# Organization ID for this request.
|
|
33700
|
+
# @param [String] zone
|
|
33701
|
+
# Name of the zone for this request.
|
|
33702
|
+
# @param [String] extension_name
|
|
33703
|
+
# Required. Name of the VM extension for this request.
|
|
33704
|
+
# @param [String] fields
|
|
33705
|
+
# Selector specifying which fields to include in a partial response.
|
|
33706
|
+
# @param [String] quota_user
|
|
33707
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33708
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33709
|
+
# @param [String] user_ip
|
|
33710
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33711
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33712
|
+
# Request-specific options
|
|
33713
|
+
#
|
|
33714
|
+
# @yield [result, err] Result & error if block supplied
|
|
33715
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
|
|
33716
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33717
|
+
#
|
|
33718
|
+
# @return [Google::Apis::ComputePreview::VmExtension]
|
|
33719
|
+
#
|
|
33720
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33721
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33722
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33723
|
+
def get_organization_zone_vm_extension_policy_vm_extension(organization, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33724
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensions/{extensionName}', options)
|
|
33725
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
|
|
33726
|
+
command.response_class = Google::Apis::ComputePreview::VmExtension
|
|
33727
|
+
command.params['organization'] = organization unless organization.nil?
|
|
33728
|
+
command.params['zone'] = zone unless zone.nil?
|
|
33729
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
33730
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33731
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33732
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33733
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33734
|
+
execute_or_queue_command(command, &block)
|
|
33735
|
+
end
|
|
33736
|
+
|
|
33737
|
+
# Creates a new zone-level VM extension policy within an organization.
|
|
33738
|
+
# @param [String] organization
|
|
33739
|
+
# Organization ID for this request.
|
|
33740
|
+
# @param [String] zone
|
|
33741
|
+
# Name of the zone for this request.
|
|
33742
|
+
# @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
|
|
33743
|
+
# @param [String] request_id
|
|
33744
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
33745
|
+
# that if you must retry your request, the server will know to ignore the
|
|
33746
|
+
# request if it has already been completed.
|
|
33747
|
+
# For example, consider a situation where you make an initial request and
|
|
33748
|
+
# the request times out. If you make the request again with the same
|
|
33749
|
+
# request ID, the server can check if original operation with the same
|
|
33750
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
33751
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
33752
|
+
# The request ID must be
|
|
33753
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
33754
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
33755
|
+
# @param [String] fields
|
|
33756
|
+
# Selector specifying which fields to include in a partial response.
|
|
33757
|
+
# @param [String] quota_user
|
|
33758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33760
|
+
# @param [String] user_ip
|
|
33761
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33762
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33763
|
+
# Request-specific options
|
|
33764
|
+
#
|
|
33765
|
+
# @yield [result, err] Result & error if block supplied
|
|
33766
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
33767
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33768
|
+
#
|
|
33769
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
33770
|
+
#
|
|
33771
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33772
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33773
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33774
|
+
def insert_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33775
|
+
command = make_simple_command(:post, '{+organization}/zones/{zone}/vmExtensionPolicies', options)
|
|
33776
|
+
command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
33777
|
+
command.request_object = vm_extension_policy_object
|
|
31394
33778
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
31395
33779
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
31396
|
-
command.params['
|
|
31397
|
-
command.
|
|
33780
|
+
command.params['organization'] = organization unless organization.nil?
|
|
33781
|
+
command.params['zone'] = zone unless zone.nil?
|
|
31398
33782
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
31399
33783
|
command.query['fields'] = fields unless fields.nil?
|
|
31400
33784
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -31403,15 +33787,237 @@ module Google
|
|
|
31403
33787
|
execute_or_queue_command(command, &block)
|
|
31404
33788
|
end
|
|
31405
33789
|
|
|
31406
|
-
#
|
|
31407
|
-
#
|
|
31408
|
-
#
|
|
31409
|
-
#
|
|
31410
|
-
#
|
|
31411
|
-
# @param [String]
|
|
31412
|
-
#
|
|
31413
|
-
#
|
|
31414
|
-
#
|
|
33790
|
+
# Lists all VM extension policies within a specific zone for an organization.
|
|
33791
|
+
# @param [String] organization
|
|
33792
|
+
# Organization ID for this request.
|
|
33793
|
+
# @param [String] zone
|
|
33794
|
+
# Name of the zone for this request.
|
|
33795
|
+
# @param [String] filter
|
|
33796
|
+
# A filter expression that filters resources listed in the response. Most
|
|
33797
|
+
# Compute resources support two types of filter expressions:
|
|
33798
|
+
# expressions that support regular expressions and expressions that follow
|
|
33799
|
+
# API improvement proposal AIP-160.
|
|
33800
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
33801
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
33802
|
+
# operator, and the value that you want to use for filtering. The value
|
|
33803
|
+
# must be a string, a number, or a boolean. The operator
|
|
33804
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
33805
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
33806
|
+
# exclude instances named `example-instance` by specifying
|
|
33807
|
+
# `name != example-instance`.
|
|
33808
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
33809
|
+
# For example, to find all objects with `owner` label use:
|
|
33810
|
+
# ```
|
|
33811
|
+
# labels.owner:*
|
|
33812
|
+
# ```
|
|
33813
|
+
# You can also filter nested fields. For example, you could specify
|
|
33814
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
33815
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
33816
|
+
# on nested fields to filter based onresource labels.
|
|
33817
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
33818
|
+
# parentheses. For example:
|
|
33819
|
+
# ```
|
|
33820
|
+
# (scheduling.automaticRestart = true)
|
|
33821
|
+
# (cpuPlatform = "Intel Skylake")
|
|
33822
|
+
# ```
|
|
33823
|
+
# By default, each expression is an `AND` expression. However, you
|
|
33824
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
33825
|
+
# For example:
|
|
33826
|
+
# ```
|
|
33827
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
33828
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
33829
|
+
# (scheduling.automaticRestart = true)
|
|
33830
|
+
# ```
|
|
33831
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
33832
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
33833
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
33834
|
+
# `fieldname eq unquoted literal`
|
|
33835
|
+
# `fieldname eq 'single quoted literal'`
|
|
33836
|
+
# `fieldname eq "double quoted literal"`
|
|
33837
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
33838
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
33839
|
+
# library syntax.
|
|
33840
|
+
# The literal value must match the entire field.
|
|
33841
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
33842
|
+
# you would use `name ne .*instance`.
|
|
33843
|
+
# You cannot combine constraints on multiple fields using regular
|
|
33844
|
+
# expressions.
|
|
33845
|
+
# @param [Fixnum] max_results
|
|
33846
|
+
# The maximum number of results per page that should be returned.
|
|
33847
|
+
# If the number of available results is larger than `maxResults`,
|
|
33848
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
33849
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
33850
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
33851
|
+
# @param [String] order_by
|
|
33852
|
+
# Sorts list results by a certain order. By default, results
|
|
33853
|
+
# are returned in alphanumerical order based on the resource name.
|
|
33854
|
+
# You can also sort results in descending order based on the creation
|
|
33855
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
33856
|
+
# results based on the `creationTimestamp` field in
|
|
33857
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
33858
|
+
# resources like operations so that the newest operation is returned first.
|
|
33859
|
+
# Currently, only sorting by `name` or
|
|
33860
|
+
# `creationTimestamp desc` is supported.
|
|
33861
|
+
# @param [String] page_token
|
|
33862
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
33863
|
+
# `nextPageToken` returned by a previous list request to get
|
|
33864
|
+
# the next page of results.
|
|
33865
|
+
# @param [String] fields
|
|
33866
|
+
# Selector specifying which fields to include in a partial response.
|
|
33867
|
+
# @param [String] quota_user
|
|
33868
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33869
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33870
|
+
# @param [String] user_ip
|
|
33871
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33872
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33873
|
+
# Request-specific options
|
|
33874
|
+
#
|
|
33875
|
+
# @yield [result, err] Result & error if block supplied
|
|
33876
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicyList] parsed result object
|
|
33877
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33878
|
+
#
|
|
33879
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicyList]
|
|
33880
|
+
#
|
|
33881
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33882
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33883
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33884
|
+
def list_organization_zone_vm_extension_policies(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33885
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensionPolicies', options)
|
|
33886
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicyList::Representation
|
|
33887
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicyList
|
|
33888
|
+
command.params['organization'] = organization unless organization.nil?
|
|
33889
|
+
command.params['zone'] = zone unless zone.nil?
|
|
33890
|
+
command.query['filter'] = filter unless filter.nil?
|
|
33891
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
33892
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
33893
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
33894
|
+
command.query['fields'] = fields unless fields.nil?
|
|
33895
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
33896
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
33897
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
33898
|
+
execute_or_queue_command(command, &block)
|
|
33899
|
+
end
|
|
33900
|
+
|
|
33901
|
+
# Lists all VM extensions within a specific zone for an organization.
|
|
33902
|
+
# This is a read-only API.
|
|
33903
|
+
# @param [String] organization
|
|
33904
|
+
# Organization ID for this request.
|
|
33905
|
+
# @param [String] zone
|
|
33906
|
+
# Name of the zone for this request.
|
|
33907
|
+
# @param [String] filter
|
|
33908
|
+
# A filter expression that filters resources listed in the response. Most
|
|
33909
|
+
# Compute resources support two types of filter expressions:
|
|
33910
|
+
# expressions that support regular expressions and expressions that follow
|
|
33911
|
+
# API improvement proposal AIP-160.
|
|
33912
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
33913
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
33914
|
+
# operator, and the value that you want to use for filtering. The value
|
|
33915
|
+
# must be a string, a number, or a boolean. The operator
|
|
33916
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
33917
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
33918
|
+
# exclude instances named `example-instance` by specifying
|
|
33919
|
+
# `name != example-instance`.
|
|
33920
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
33921
|
+
# For example, to find all objects with `owner` label use:
|
|
33922
|
+
# ```
|
|
33923
|
+
# labels.owner:*
|
|
33924
|
+
# ```
|
|
33925
|
+
# You can also filter nested fields. For example, you could specify
|
|
33926
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
33927
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
33928
|
+
# on nested fields to filter based onresource labels.
|
|
33929
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
33930
|
+
# parentheses. For example:
|
|
33931
|
+
# ```
|
|
33932
|
+
# (scheduling.automaticRestart = true)
|
|
33933
|
+
# (cpuPlatform = "Intel Skylake")
|
|
33934
|
+
# ```
|
|
33935
|
+
# By default, each expression is an `AND` expression. However, you
|
|
33936
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
33937
|
+
# For example:
|
|
33938
|
+
# ```
|
|
33939
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
33940
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
33941
|
+
# (scheduling.automaticRestart = true)
|
|
33942
|
+
# ```
|
|
33943
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
33944
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
33945
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
33946
|
+
# `fieldname eq unquoted literal`
|
|
33947
|
+
# `fieldname eq 'single quoted literal'`
|
|
33948
|
+
# `fieldname eq "double quoted literal"`
|
|
33949
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
33950
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
33951
|
+
# library syntax.
|
|
33952
|
+
# The literal value must match the entire field.
|
|
33953
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
33954
|
+
# you would use `name ne .*instance`.
|
|
33955
|
+
# You cannot combine constraints on multiple fields using regular
|
|
33956
|
+
# expressions.
|
|
33957
|
+
# @param [Fixnum] max_results
|
|
33958
|
+
# The maximum number of results per page that should be returned.
|
|
33959
|
+
# If the number of available results is larger than `maxResults`,
|
|
33960
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
33961
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
33962
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
33963
|
+
# @param [String] order_by
|
|
33964
|
+
# Sorts list results by a certain order. By default, results
|
|
33965
|
+
# are returned in alphanumerical order based on the resource name.
|
|
33966
|
+
# You can also sort results in descending order based on the creation
|
|
33967
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
33968
|
+
# results based on the `creationTimestamp` field in
|
|
33969
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
33970
|
+
# resources like operations so that the newest operation is returned first.
|
|
33971
|
+
# Currently, only sorting by `name` or
|
|
33972
|
+
# `creationTimestamp desc` is supported.
|
|
33973
|
+
# @param [String] page_token
|
|
33974
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
33975
|
+
# `nextPageToken` returned by a previous list request to get
|
|
33976
|
+
# the next page of results.
|
|
33977
|
+
# @param [String] fields
|
|
33978
|
+
# Selector specifying which fields to include in a partial response.
|
|
33979
|
+
# @param [String] quota_user
|
|
33980
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
33981
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
33982
|
+
# @param [String] user_ip
|
|
33983
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
33984
|
+
# @param [Google::Apis::RequestOptions] options
|
|
33985
|
+
# Request-specific options
|
|
33986
|
+
#
|
|
33987
|
+
# @yield [result, err] Result & error if block supplied
|
|
33988
|
+
# @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
|
|
33989
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
33990
|
+
#
|
|
33991
|
+
# @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
|
|
33992
|
+
#
|
|
33993
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
33994
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
33995
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
33996
|
+
def list_organization_zone_vm_extension_policy_vm_extensions(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
33997
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/vmExtensions', options)
|
|
33998
|
+
command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
|
|
33999
|
+
command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
|
|
34000
|
+
command.params['organization'] = organization unless organization.nil?
|
|
34001
|
+
command.params['zone'] = zone unless zone.nil?
|
|
34002
|
+
command.query['filter'] = filter unless filter.nil?
|
|
34003
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
34004
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
34005
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
34006
|
+
command.query['fields'] = fields unless fields.nil?
|
|
34007
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
34008
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
34009
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
34010
|
+
execute_or_queue_command(command, &block)
|
|
34011
|
+
end
|
|
34012
|
+
|
|
34013
|
+
# Modifies an existing zone VM extension policy within an organization.
|
|
34014
|
+
# @param [String] organization
|
|
34015
|
+
# Organization ID for this request.
|
|
34016
|
+
# @param [String] zone
|
|
34017
|
+
# Name of the zone for this request.
|
|
34018
|
+
# @param [String] vm_extension_policy
|
|
34019
|
+
# Name of the zone VM extension policy to update.
|
|
34020
|
+
# @param [Google::Apis::ComputePreview::VmExtensionPolicy] vm_extension_policy_object
|
|
31415
34021
|
# @param [String] request_id
|
|
31416
34022
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
31417
34023
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -31443,12 +34049,15 @@ module Google
|
|
|
31443
34049
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31444
34050
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31445
34051
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31446
|
-
def
|
|
31447
|
-
command = make_simple_command(:
|
|
34052
|
+
def update_organization_zone_vm_extension_policy(organization, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
34053
|
+
command = make_simple_command(:patch, '{+organization}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
34054
|
+
command.request_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
34055
|
+
command.request_object = vm_extension_policy_object
|
|
31448
34056
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
31449
34057
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
31450
|
-
command.params['
|
|
31451
|
-
command.
|
|
34058
|
+
command.params['organization'] = organization unless organization.nil?
|
|
34059
|
+
command.params['zone'] = zone unless zone.nil?
|
|
34060
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
31452
34061
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
31453
34062
|
command.query['fields'] = fields unless fields.nil?
|
|
31454
34063
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -46608,6 +49217,44 @@ module Google
|
|
|
46608
49217
|
execute_or_queue_command(command, &block)
|
|
46609
49218
|
end
|
|
46610
49219
|
|
|
49220
|
+
# Returns the public encryption key used to encrypt the TLS private key
|
|
49221
|
+
# before upload.
|
|
49222
|
+
# @param [String] project
|
|
49223
|
+
# Project ID for this request.
|
|
49224
|
+
# @param [String] region
|
|
49225
|
+
# Name of the region scoping this request.
|
|
49226
|
+
# @param [String] fields
|
|
49227
|
+
# Selector specifying which fields to include in a partial response.
|
|
49228
|
+
# @param [String] quota_user
|
|
49229
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49230
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49231
|
+
# @param [String] user_ip
|
|
49232
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49233
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49234
|
+
# Request-specific options
|
|
49235
|
+
#
|
|
49236
|
+
# @yield [result, err] Result & error if block supplied
|
|
49237
|
+
# @yieldparam result [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse] parsed result object
|
|
49238
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49239
|
+
#
|
|
49240
|
+
# @return [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse]
|
|
49241
|
+
#
|
|
49242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49245
|
+
def fetch_region_ssl_certificate_encryption_key(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49246
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslCertificates/encryptionKey', options)
|
|
49247
|
+
command.response_representation = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse::Representation
|
|
49248
|
+
command.response_class = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse
|
|
49249
|
+
command.params['project'] = project unless project.nil?
|
|
49250
|
+
command.params['region'] = region unless region.nil?
|
|
49251
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49253
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49254
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
49255
|
+
execute_or_queue_command(command, &block)
|
|
49256
|
+
end
|
|
49257
|
+
|
|
46611
49258
|
# Returns the specified SslCertificate resource in the specified region. Get
|
|
46612
49259
|
# a list of available SSL certificates by making a list()
|
|
46613
49260
|
# request.
|
|
@@ -56052,6 +58699,41 @@ module Google
|
|
|
56052
58699
|
execute_or_queue_command(command, &block)
|
|
56053
58700
|
end
|
|
56054
58701
|
|
|
58702
|
+
# Returns the public encryption key used to encrypt the TLS private key
|
|
58703
|
+
# before upload.
|
|
58704
|
+
# @param [String] project
|
|
58705
|
+
# Project ID for this request.
|
|
58706
|
+
# @param [String] fields
|
|
58707
|
+
# Selector specifying which fields to include in a partial response.
|
|
58708
|
+
# @param [String] quota_user
|
|
58709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
58710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
58711
|
+
# @param [String] user_ip
|
|
58712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
58713
|
+
# @param [Google::Apis::RequestOptions] options
|
|
58714
|
+
# Request-specific options
|
|
58715
|
+
#
|
|
58716
|
+
# @yield [result, err] Result & error if block supplied
|
|
58717
|
+
# @yieldparam result [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse] parsed result object
|
|
58718
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
58719
|
+
#
|
|
58720
|
+
# @return [Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse]
|
|
58721
|
+
#
|
|
58722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
58723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
58724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
58725
|
+
def fetch_ssl_certificate_encryption_key(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
58726
|
+
command = make_simple_command(:get, 'projects/{project}/global/sslCertificates/encryptionKey', options)
|
|
58727
|
+
command.response_representation = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse::Representation
|
|
58728
|
+
command.response_class = Google::Apis::ComputePreview::SslCertificatesFetchEncryptionKeyResponse
|
|
58729
|
+
command.params['project'] = project unless project.nil?
|
|
58730
|
+
command.query['fields'] = fields unless fields.nil?
|
|
58731
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
58732
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
58733
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
58734
|
+
execute_or_queue_command(command, &block)
|
|
58735
|
+
end
|
|
58736
|
+
|
|
56055
58737
|
# Returns the specified SslCertificate resource.
|
|
56056
58738
|
# @param [String] project
|
|
56057
58739
|
# Project ID for this request.
|
|
@@ -64695,20 +67377,429 @@ module Google
|
|
|
64695
67377
|
# Request-specific options
|
|
64696
67378
|
#
|
|
64697
67379
|
# @yield [result, err] Result & error if block supplied
|
|
64698
|
-
# @yieldparam result [Google::Apis::ComputePreview::WireGroupList] parsed result object
|
|
67380
|
+
# @yieldparam result [Google::Apis::ComputePreview::WireGroupList] parsed result object
|
|
67381
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67382
|
+
#
|
|
67383
|
+
# @return [Google::Apis::ComputePreview::WireGroupList]
|
|
67384
|
+
#
|
|
67385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67388
|
+
def list_wire_groups(project, cross_site_network, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67389
|
+
command = make_simple_command(:get, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups', options)
|
|
67390
|
+
command.response_representation = Google::Apis::ComputePreview::WireGroupList::Representation
|
|
67391
|
+
command.response_class = Google::Apis::ComputePreview::WireGroupList
|
|
67392
|
+
command.params['project'] = project unless project.nil?
|
|
67393
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
|
67394
|
+
command.query['filter'] = filter unless filter.nil?
|
|
67395
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
67396
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
67397
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
67398
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67400
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67401
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67402
|
+
execute_or_queue_command(command, &block)
|
|
67403
|
+
end
|
|
67404
|
+
|
|
67405
|
+
# Updates the specified wire group resource with the data included in the
|
|
67406
|
+
# request. This method supportsPATCH
|
|
67407
|
+
# semantics and usesJSON merge
|
|
67408
|
+
# patch format and processing rules.
|
|
67409
|
+
# @param [String] project
|
|
67410
|
+
# Project ID for this request.
|
|
67411
|
+
# @param [String] cross_site_network
|
|
67412
|
+
# @param [String] wire_group
|
|
67413
|
+
# Name of the WireGroups resource to patch.
|
|
67414
|
+
# @param [Google::Apis::ComputePreview::WireGroup] wire_group_object
|
|
67415
|
+
# @param [String] request_id
|
|
67416
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
67417
|
+
# that if you must retry your request, the server will know to ignore the
|
|
67418
|
+
# request if it has already been completed.
|
|
67419
|
+
# For example, consider a situation where you make an initial request and
|
|
67420
|
+
# the request times out. If you make the request again with the same
|
|
67421
|
+
# request ID, the server can check if original operation with the same
|
|
67422
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
67423
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
67424
|
+
# The request ID must be
|
|
67425
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
67426
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
67427
|
+
# end_interface: MixerMutationRequestBuilder
|
|
67428
|
+
# @param [String] update_mask
|
|
67429
|
+
# update_mask indicates fields to be updated as part of this request.
|
|
67430
|
+
# @param [Boolean] validate_only
|
|
67431
|
+
# [Input Only] Validate the new configuration, but don't update it.
|
|
67432
|
+
# @param [String] fields
|
|
67433
|
+
# Selector specifying which fields to include in a partial response.
|
|
67434
|
+
# @param [String] quota_user
|
|
67435
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67436
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67437
|
+
# @param [String] user_ip
|
|
67438
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67439
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67440
|
+
# Request-specific options
|
|
67441
|
+
#
|
|
67442
|
+
# @yield [result, err] Result & error if block supplied
|
|
67443
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
67444
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67445
|
+
#
|
|
67446
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
67447
|
+
#
|
|
67448
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67449
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67450
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67451
|
+
def patch_wire_group(project, cross_site_network, wire_group, wire_group_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67452
|
+
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
|
67453
|
+
command.request_representation = Google::Apis::ComputePreview::WireGroup::Representation
|
|
67454
|
+
command.request_object = wire_group_object
|
|
67455
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
67456
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
67457
|
+
command.params['project'] = project unless project.nil?
|
|
67458
|
+
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
|
67459
|
+
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
|
67460
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
67461
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
67462
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
67463
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67466
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67467
|
+
execute_or_queue_command(command, &block)
|
|
67468
|
+
end
|
|
67469
|
+
|
|
67470
|
+
# Retrieves the specified Operations resource.
|
|
67471
|
+
# @param [String] folder
|
|
67472
|
+
# Folder ID for this request.
|
|
67473
|
+
# @param [String] zone
|
|
67474
|
+
# Name of the zone for this request.
|
|
67475
|
+
# @param [String] operation
|
|
67476
|
+
# Name of the Operations resource to return.
|
|
67477
|
+
# @param [String] fields
|
|
67478
|
+
# Selector specifying which fields to include in a partial response.
|
|
67479
|
+
# @param [String] quota_user
|
|
67480
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67481
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67482
|
+
# @param [String] user_ip
|
|
67483
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67484
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67485
|
+
# Request-specific options
|
|
67486
|
+
#
|
|
67487
|
+
# @yield [result, err] Result & error if block supplied
|
|
67488
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
67489
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67490
|
+
#
|
|
67491
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
67492
|
+
#
|
|
67493
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67494
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67495
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67496
|
+
def get_zone_folder_operation(folder, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67497
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/operations/{operation}', options)
|
|
67498
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
67499
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
67500
|
+
command.params['folder'] = folder unless folder.nil?
|
|
67501
|
+
command.params['zone'] = zone unless zone.nil?
|
|
67502
|
+
command.params['operation'] = operation unless operation.nil?
|
|
67503
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67505
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67506
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67507
|
+
execute_or_queue_command(command, &block)
|
|
67508
|
+
end
|
|
67509
|
+
|
|
67510
|
+
# Retrieves a list of Operation resources contained within the specified
|
|
67511
|
+
# folder.
|
|
67512
|
+
# @param [String] folder
|
|
67513
|
+
# Folder ID for this request.
|
|
67514
|
+
# @param [String] zone
|
|
67515
|
+
# Name of the zone for request.
|
|
67516
|
+
# @param [String] filter
|
|
67517
|
+
# A filter expression that filters resources listed in the response. Most
|
|
67518
|
+
# Compute resources support two types of filter expressions:
|
|
67519
|
+
# expressions that support regular expressions and expressions that follow
|
|
67520
|
+
# API improvement proposal AIP-160.
|
|
67521
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
67522
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
67523
|
+
# operator, and the value that you want to use for filtering. The value
|
|
67524
|
+
# must be a string, a number, or a boolean. The operator
|
|
67525
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
67526
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
67527
|
+
# exclude instances named `example-instance` by specifying
|
|
67528
|
+
# `name != example-instance`.
|
|
67529
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
67530
|
+
# For example, to find all objects with `owner` label use:
|
|
67531
|
+
# ```
|
|
67532
|
+
# labels.owner:*
|
|
67533
|
+
# ```
|
|
67534
|
+
# You can also filter nested fields. For example, you could specify
|
|
67535
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
67536
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
67537
|
+
# on nested fields to filter based onresource labels.
|
|
67538
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
67539
|
+
# parentheses. For example:
|
|
67540
|
+
# ```
|
|
67541
|
+
# (scheduling.automaticRestart = true)
|
|
67542
|
+
# (cpuPlatform = "Intel Skylake")
|
|
67543
|
+
# ```
|
|
67544
|
+
# By default, each expression is an `AND` expression. However, you
|
|
67545
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
67546
|
+
# For example:
|
|
67547
|
+
# ```
|
|
67548
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
67549
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
67550
|
+
# (scheduling.automaticRestart = true)
|
|
67551
|
+
# ```
|
|
67552
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
67553
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
67554
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
67555
|
+
# `fieldname eq unquoted literal`
|
|
67556
|
+
# `fieldname eq 'single quoted literal'`
|
|
67557
|
+
# `fieldname eq "double quoted literal"`
|
|
67558
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
67559
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
67560
|
+
# library syntax.
|
|
67561
|
+
# The literal value must match the entire field.
|
|
67562
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
67563
|
+
# you would use `name ne .*instance`.
|
|
67564
|
+
# You cannot combine constraints on multiple fields using regular
|
|
67565
|
+
# expressions.
|
|
67566
|
+
# @param [Fixnum] max_results
|
|
67567
|
+
# The maximum number of results per page that should be returned.
|
|
67568
|
+
# If the number of available results is larger than `maxResults`,
|
|
67569
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
67570
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
67571
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
67572
|
+
# @param [String] order_by
|
|
67573
|
+
# Sorts list results by a certain order. By default, results
|
|
67574
|
+
# are returned in alphanumerical order based on the resource name.
|
|
67575
|
+
# You can also sort results in descending order based on the creation
|
|
67576
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
67577
|
+
# results based on the `creationTimestamp` field in
|
|
67578
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
67579
|
+
# resources like operations so that the newest operation is returned first.
|
|
67580
|
+
# Currently, only sorting by `name` or
|
|
67581
|
+
# `creationTimestamp desc` is supported.
|
|
67582
|
+
# @param [String] page_token
|
|
67583
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
67584
|
+
# `nextPageToken` returned by a previous list request to get
|
|
67585
|
+
# the next page of results.
|
|
67586
|
+
# @param [String] fields
|
|
67587
|
+
# Selector specifying which fields to include in a partial response.
|
|
67588
|
+
# @param [String] quota_user
|
|
67589
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67590
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67591
|
+
# @param [String] user_ip
|
|
67592
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67593
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67594
|
+
# Request-specific options
|
|
67595
|
+
#
|
|
67596
|
+
# @yield [result, err] Result & error if block supplied
|
|
67597
|
+
# @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
|
|
67598
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67599
|
+
#
|
|
67600
|
+
# @return [Google::Apis::ComputePreview::OperationList]
|
|
67601
|
+
#
|
|
67602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67605
|
+
def list_zone_folder_operations(folder, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67606
|
+
command = make_simple_command(:get, '{+folder}/zones/{zone}/operations', options)
|
|
67607
|
+
command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
|
|
67608
|
+
command.response_class = Google::Apis::ComputePreview::OperationList
|
|
67609
|
+
command.params['folder'] = folder unless folder.nil?
|
|
67610
|
+
command.params['zone'] = zone unless zone.nil?
|
|
67611
|
+
command.query['filter'] = filter unless filter.nil?
|
|
67612
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
67613
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
67614
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
67615
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67617
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67618
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67619
|
+
execute_or_queue_command(command, &block)
|
|
67620
|
+
end
|
|
67621
|
+
|
|
67622
|
+
# Deletes the specified zone-specific Operations resource.
|
|
67623
|
+
# @param [String] project
|
|
67624
|
+
# Project ID for this request.
|
|
67625
|
+
# @param [String] zone
|
|
67626
|
+
# Name of the zone for this request.
|
|
67627
|
+
# @param [String] operation
|
|
67628
|
+
# Name of the Operations resource to delete, or its unique numeric
|
|
67629
|
+
# identifier.
|
|
67630
|
+
# @param [String] fields
|
|
67631
|
+
# Selector specifying which fields to include in a partial response.
|
|
67632
|
+
# @param [String] quota_user
|
|
67633
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67634
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67635
|
+
# @param [String] user_ip
|
|
67636
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67637
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67638
|
+
# Request-specific options
|
|
67639
|
+
#
|
|
67640
|
+
# @yield [result, err] Result & error if block supplied
|
|
67641
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
67642
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67643
|
+
#
|
|
67644
|
+
# @return [void]
|
|
67645
|
+
#
|
|
67646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67649
|
+
def delete_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67650
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/operations/{operation}', options)
|
|
67651
|
+
command.params['project'] = project unless project.nil?
|
|
67652
|
+
command.params['zone'] = zone unless zone.nil?
|
|
67653
|
+
command.params['operation'] = operation unless operation.nil?
|
|
67654
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67656
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67657
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67658
|
+
execute_or_queue_command(command, &block)
|
|
67659
|
+
end
|
|
67660
|
+
|
|
67661
|
+
# Retrieves the specified zone-specific Operations resource.
|
|
67662
|
+
# @param [String] project
|
|
67663
|
+
# Project ID for this request.
|
|
67664
|
+
# @param [String] zone
|
|
67665
|
+
# Name of the zone for this request.
|
|
67666
|
+
# @param [String] operation
|
|
67667
|
+
# Name of the Operations resource to return, or its unique numeric
|
|
67668
|
+
# identifier.
|
|
67669
|
+
# @param [String] fields
|
|
67670
|
+
# Selector specifying which fields to include in a partial response.
|
|
67671
|
+
# @param [String] quota_user
|
|
67672
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67673
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67674
|
+
# @param [String] user_ip
|
|
67675
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67676
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67677
|
+
# Request-specific options
|
|
67678
|
+
#
|
|
67679
|
+
# @yield [result, err] Result & error if block supplied
|
|
67680
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
67681
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67682
|
+
#
|
|
67683
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
67684
|
+
#
|
|
67685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
67686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
67687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
67688
|
+
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67689
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations/{operation}', options)
|
|
67690
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
67691
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
67692
|
+
command.params['project'] = project unless project.nil?
|
|
67693
|
+
command.params['zone'] = zone unless zone.nil?
|
|
67694
|
+
command.params['operation'] = operation unless operation.nil?
|
|
67695
|
+
command.query['fields'] = fields unless fields.nil?
|
|
67696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
67697
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
67698
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
67699
|
+
execute_or_queue_command(command, &block)
|
|
67700
|
+
end
|
|
67701
|
+
|
|
67702
|
+
# Retrieves a list of Operation resources contained within
|
|
67703
|
+
# the specified zone.
|
|
67704
|
+
# @param [String] project
|
|
67705
|
+
# Project ID for this request.
|
|
67706
|
+
# @param [String] zone
|
|
67707
|
+
# Name of the zone for request.
|
|
67708
|
+
# @param [String] filter
|
|
67709
|
+
# A filter expression that filters resources listed in the response. Most
|
|
67710
|
+
# Compute resources support two types of filter expressions:
|
|
67711
|
+
# expressions that support regular expressions and expressions that follow
|
|
67712
|
+
# API improvement proposal AIP-160.
|
|
67713
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
67714
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
67715
|
+
# operator, and the value that you want to use for filtering. The value
|
|
67716
|
+
# must be a string, a number, or a boolean. The operator
|
|
67717
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
67718
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
67719
|
+
# exclude instances named `example-instance` by specifying
|
|
67720
|
+
# `name != example-instance`.
|
|
67721
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
67722
|
+
# For example, to find all objects with `owner` label use:
|
|
67723
|
+
# ```
|
|
67724
|
+
# labels.owner:*
|
|
67725
|
+
# ```
|
|
67726
|
+
# You can also filter nested fields. For example, you could specify
|
|
67727
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
67728
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
67729
|
+
# on nested fields to filter based onresource labels.
|
|
67730
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
67731
|
+
# parentheses. For example:
|
|
67732
|
+
# ```
|
|
67733
|
+
# (scheduling.automaticRestart = true)
|
|
67734
|
+
# (cpuPlatform = "Intel Skylake")
|
|
67735
|
+
# ```
|
|
67736
|
+
# By default, each expression is an `AND` expression. However, you
|
|
67737
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
67738
|
+
# For example:
|
|
67739
|
+
# ```
|
|
67740
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
67741
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
67742
|
+
# (scheduling.automaticRestart = true)
|
|
67743
|
+
# ```
|
|
67744
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
67745
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
67746
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
67747
|
+
# `fieldname eq unquoted literal`
|
|
67748
|
+
# `fieldname eq 'single quoted literal'`
|
|
67749
|
+
# `fieldname eq "double quoted literal"`
|
|
67750
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
67751
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
67752
|
+
# library syntax.
|
|
67753
|
+
# The literal value must match the entire field.
|
|
67754
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
67755
|
+
# you would use `name ne .*instance`.
|
|
67756
|
+
# You cannot combine constraints on multiple fields using regular
|
|
67757
|
+
# expressions.
|
|
67758
|
+
# @param [Fixnum] max_results
|
|
67759
|
+
# The maximum number of results per page that should be returned.
|
|
67760
|
+
# If the number of available results is larger than `maxResults`,
|
|
67761
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
67762
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
67763
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
67764
|
+
# @param [String] order_by
|
|
67765
|
+
# Sorts list results by a certain order. By default, results
|
|
67766
|
+
# are returned in alphanumerical order based on the resource name.
|
|
67767
|
+
# You can also sort results in descending order based on the creation
|
|
67768
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
67769
|
+
# results based on the `creationTimestamp` field in
|
|
67770
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
67771
|
+
# resources like operations so that the newest operation is returned first.
|
|
67772
|
+
# Currently, only sorting by `name` or
|
|
67773
|
+
# `creationTimestamp desc` is supported.
|
|
67774
|
+
# @param [String] page_token
|
|
67775
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
67776
|
+
# `nextPageToken` returned by a previous list request to get
|
|
67777
|
+
# the next page of results.
|
|
67778
|
+
# @param [String] fields
|
|
67779
|
+
# Selector specifying which fields to include in a partial response.
|
|
67780
|
+
# @param [String] quota_user
|
|
67781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
67782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
67783
|
+
# @param [String] user_ip
|
|
67784
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
67785
|
+
# @param [Google::Apis::RequestOptions] options
|
|
67786
|
+
# Request-specific options
|
|
67787
|
+
#
|
|
67788
|
+
# @yield [result, err] Result & error if block supplied
|
|
67789
|
+
# @yieldparam result [Google::Apis::ComputePreview::OperationList] parsed result object
|
|
64699
67790
|
# @yieldparam err [StandardError] error object if request failed
|
|
64700
67791
|
#
|
|
64701
|
-
# @return [Google::Apis::ComputePreview::
|
|
67792
|
+
# @return [Google::Apis::ComputePreview::OperationList]
|
|
64702
67793
|
#
|
|
64703
67794
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
64704
67795
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
64705
67796
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
64706
|
-
def
|
|
64707
|
-
command = make_simple_command(:get, 'projects/{project}/
|
|
64708
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
64709
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
67797
|
+
def list_zone_operations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67798
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/operations', options)
|
|
67799
|
+
command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
|
|
67800
|
+
command.response_class = Google::Apis::ComputePreview::OperationList
|
|
64710
67801
|
command.params['project'] = project unless project.nil?
|
|
64711
|
-
command.params['
|
|
67802
|
+
command.params['zone'] = zone unless zone.nil?
|
|
64712
67803
|
command.query['filter'] = filter unless filter.nil?
|
|
64713
67804
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
64714
67805
|
command.query['orderBy'] = order_by unless order_by.nil?
|
|
@@ -64720,78 +67811,26 @@ module Google
|
|
|
64720
67811
|
execute_or_queue_command(command, &block)
|
|
64721
67812
|
end
|
|
64722
67813
|
|
|
64723
|
-
#
|
|
64724
|
-
# request
|
|
64725
|
-
#
|
|
64726
|
-
#
|
|
64727
|
-
#
|
|
64728
|
-
#
|
|
64729
|
-
#
|
|
64730
|
-
#
|
|
64731
|
-
#
|
|
64732
|
-
#
|
|
64733
|
-
#
|
|
64734
|
-
#
|
|
64735
|
-
#
|
|
64736
|
-
#
|
|
64737
|
-
# For example, consider a situation where you make an initial request and
|
|
64738
|
-
# the request times out. If you make the request again with the same
|
|
64739
|
-
# request ID, the server can check if original operation with the same
|
|
64740
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
64741
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
64742
|
-
# The request ID must be
|
|
64743
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
64744
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
64745
|
-
# end_interface: MixerMutationRequestBuilder
|
|
64746
|
-
# @param [String] update_mask
|
|
64747
|
-
# update_mask indicates fields to be updated as part of this request.
|
|
64748
|
-
# @param [Boolean] validate_only
|
|
64749
|
-
# [Input Only] Validate the new configuration, but don't update it.
|
|
64750
|
-
# @param [String] fields
|
|
64751
|
-
# Selector specifying which fields to include in a partial response.
|
|
64752
|
-
# @param [String] quota_user
|
|
64753
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
64754
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64755
|
-
# @param [String] user_ip
|
|
64756
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
64757
|
-
# @param [Google::Apis::RequestOptions] options
|
|
64758
|
-
# Request-specific options
|
|
64759
|
-
#
|
|
64760
|
-
# @yield [result, err] Result & error if block supplied
|
|
64761
|
-
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
64762
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
64763
|
-
#
|
|
64764
|
-
# @return [Google::Apis::ComputePreview::Operation]
|
|
64765
|
-
#
|
|
64766
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
64767
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
64768
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
64769
|
-
def patch_wire_group(project, cross_site_network, wire_group, wire_group_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
64770
|
-
command = make_simple_command(:patch, 'projects/{project}/global/crossSiteNetworks/{crossSiteNetwork}/wireGroups/{wireGroup}', options)
|
|
64771
|
-
command.request_representation = Google::Apis::ComputePreview::WireGroup::Representation
|
|
64772
|
-
command.request_object = wire_group_object
|
|
64773
|
-
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
64774
|
-
command.response_class = Google::Apis::ComputePreview::Operation
|
|
64775
|
-
command.params['project'] = project unless project.nil?
|
|
64776
|
-
command.params['crossSiteNetwork'] = cross_site_network unless cross_site_network.nil?
|
|
64777
|
-
command.params['wireGroup'] = wire_group unless wire_group.nil?
|
|
64778
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
64779
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
64780
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
64781
|
-
command.query['fields'] = fields unless fields.nil?
|
|
64782
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
64783
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
64784
|
-
command.set_api_version_header "2026-10-01-preview"
|
|
64785
|
-
execute_or_queue_command(command, &block)
|
|
64786
|
-
end
|
|
64787
|
-
|
|
64788
|
-
# Deletes the specified zone-specific Operations resource.
|
|
67814
|
+
# Waits for the specified Operation resource to return as `DONE`
|
|
67815
|
+
# or for the request to approach the 2 minute deadline, and retrieves the
|
|
67816
|
+
# specified Operation resource. This method waits for no more than the
|
|
67817
|
+
# 2 minutes and then returns the current state of the
|
|
67818
|
+
# operation, which might be `DONE` or still in progress.
|
|
67819
|
+
# This method is called on a best-effort basis. Specifically:
|
|
67820
|
+
#
|
|
67821
|
+
#
|
|
67822
|
+
# - In uncommon cases, when the server is overloaded, the request might
|
|
67823
|
+
# return before the default deadline is reached, or might return after zero
|
|
67824
|
+
# seconds.
|
|
67825
|
+
# - If the default deadline is reached, there is no guarantee that the
|
|
67826
|
+
# operation is actually done when the method returns. Be prepared to retry
|
|
67827
|
+
# if the operation is not `DONE`.
|
|
64789
67828
|
# @param [String] project
|
|
64790
67829
|
# Project ID for this request.
|
|
64791
67830
|
# @param [String] zone
|
|
64792
67831
|
# Name of the zone for this request.
|
|
64793
67832
|
# @param [String] operation
|
|
64794
|
-
# Name of the Operations resource to
|
|
67833
|
+
# Name of the Operations resource to return, or its unique numeric
|
|
64795
67834
|
# identifier.
|
|
64796
67835
|
# @param [String] fields
|
|
64797
67836
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -64804,16 +67843,18 @@ module Google
|
|
|
64804
67843
|
# Request-specific options
|
|
64805
67844
|
#
|
|
64806
67845
|
# @yield [result, err] Result & error if block supplied
|
|
64807
|
-
# @yieldparam result [
|
|
67846
|
+
# @yieldparam result [Google::Apis::ComputePreview::Operation] parsed result object
|
|
64808
67847
|
# @yieldparam err [StandardError] error object if request failed
|
|
64809
67848
|
#
|
|
64810
|
-
# @return [
|
|
67849
|
+
# @return [Google::Apis::ComputePreview::Operation]
|
|
64811
67850
|
#
|
|
64812
67851
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
64813
67852
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
64814
67853
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
64815
|
-
def
|
|
64816
|
-
command = make_simple_command(:
|
|
67854
|
+
def wait_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67855
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/operations/{operation}/wait', options)
|
|
67856
|
+
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
67857
|
+
command.response_class = Google::Apis::ComputePreview::Operation
|
|
64817
67858
|
command.params['project'] = project unless project.nil?
|
|
64818
67859
|
command.params['zone'] = zone unless zone.nil?
|
|
64819
67860
|
command.params['operation'] = operation unless operation.nil?
|
|
@@ -64824,14 +67865,14 @@ module Google
|
|
|
64824
67865
|
execute_or_queue_command(command, &block)
|
|
64825
67866
|
end
|
|
64826
67867
|
|
|
64827
|
-
# Retrieves the specified
|
|
64828
|
-
# @param [String]
|
|
64829
|
-
#
|
|
67868
|
+
# Retrieves the specified Operations resource.
|
|
67869
|
+
# @param [String] organization
|
|
67870
|
+
# Organization ID for this request.
|
|
64830
67871
|
# @param [String] zone
|
|
64831
67872
|
# Name of the zone for this request.
|
|
64832
67873
|
# @param [String] operation
|
|
64833
|
-
# Name of the Operations resource to return
|
|
64834
|
-
#
|
|
67874
|
+
# Name of the Operations resource to return. Parent is derived from this
|
|
67875
|
+
# field.
|
|
64835
67876
|
# @param [String] fields
|
|
64836
67877
|
# Selector specifying which fields to include in a partial response.
|
|
64837
67878
|
# @param [String] quota_user
|
|
@@ -64851,11 +67892,11 @@ module Google
|
|
|
64851
67892
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
64852
67893
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
64853
67894
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
64854
|
-
def
|
|
64855
|
-
command = make_simple_command(:get, '
|
|
67895
|
+
def get_zone_organization_operation(organization, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
67896
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/operations/{operation}', options)
|
|
64856
67897
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
64857
67898
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
64858
|
-
command.params['
|
|
67899
|
+
command.params['organization'] = organization unless organization.nil?
|
|
64859
67900
|
command.params['zone'] = zone unless zone.nil?
|
|
64860
67901
|
command.params['operation'] = operation unless operation.nil?
|
|
64861
67902
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -64865,10 +67906,10 @@ module Google
|
|
|
64865
67906
|
execute_or_queue_command(command, &block)
|
|
64866
67907
|
end
|
|
64867
67908
|
|
|
64868
|
-
# Retrieves a list of Operation resources contained within
|
|
64869
|
-
#
|
|
64870
|
-
# @param [String]
|
|
64871
|
-
#
|
|
67909
|
+
# Retrieves a list of Operation resources contained within the specified
|
|
67910
|
+
# organization.
|
|
67911
|
+
# @param [String] organization
|
|
67912
|
+
# Organization ID for this request.
|
|
64872
67913
|
# @param [String] zone
|
|
64873
67914
|
# Name of the zone for request.
|
|
64874
67915
|
# @param [String] filter
|
|
@@ -64960,11 +68001,11 @@ module Google
|
|
|
64960
68001
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
64961
68002
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
64962
68003
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
64963
|
-
def
|
|
64964
|
-
command = make_simple_command(:get, '
|
|
68004
|
+
def list_zone_organization_operations(organization, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
68005
|
+
command = make_simple_command(:get, '{+organization}/zones/{zone}/operations', options)
|
|
64965
68006
|
command.response_representation = Google::Apis::ComputePreview::OperationList::Representation
|
|
64966
68007
|
command.response_class = Google::Apis::ComputePreview::OperationList
|
|
64967
|
-
command.params['
|
|
68008
|
+
command.params['organization'] = organization unless organization.nil?
|
|
64968
68009
|
command.params['zone'] = zone unless zone.nil?
|
|
64969
68010
|
command.query['filter'] = filter unless filter.nil?
|
|
64970
68011
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -64977,27 +68018,25 @@ module Google
|
|
|
64977
68018
|
execute_or_queue_command(command, &block)
|
|
64978
68019
|
end
|
|
64979
68020
|
|
|
64980
|
-
#
|
|
64981
|
-
# or for the request to approach the 2 minute deadline, and retrieves the
|
|
64982
|
-
# specified Operation resource. This method waits for no more than the
|
|
64983
|
-
# 2 minutes and then returns the current state of the
|
|
64984
|
-
# operation, which might be `DONE` or still in progress.
|
|
64985
|
-
# This method is called on a best-effort basis. Specifically:
|
|
64986
|
-
#
|
|
64987
|
-
#
|
|
64988
|
-
# - In uncommon cases, when the server is overloaded, the request might
|
|
64989
|
-
# return before the default deadline is reached, or might return after zero
|
|
64990
|
-
# seconds.
|
|
64991
|
-
# - If the default deadline is reached, there is no guarantee that the
|
|
64992
|
-
# operation is actually done when the method returns. Be prepared to retry
|
|
64993
|
-
# if the operation is not `DONE`.
|
|
68021
|
+
# Deletes a specified zone VM extension policy within a project.
|
|
64994
68022
|
# @param [String] project
|
|
64995
68023
|
# Project ID for this request.
|
|
64996
68024
|
# @param [String] zone
|
|
64997
68025
|
# Name of the zone for this request.
|
|
64998
|
-
# @param [String]
|
|
64999
|
-
# Name of the
|
|
65000
|
-
#
|
|
68026
|
+
# @param [String] vm_extension_policy
|
|
68027
|
+
# Name of the zone VM extension policy to delete.
|
|
68028
|
+
# @param [String] request_id
|
|
68029
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
68030
|
+
# that if you must retry your request, the server will know to ignore the
|
|
68031
|
+
# request if it has already been completed.
|
|
68032
|
+
# For example, consider a situation where you make an initial request and
|
|
68033
|
+
# the request times out. If you make the request again with the same
|
|
68034
|
+
# request ID, the server can check if original operation with the same
|
|
68035
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
68036
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
68037
|
+
# The request ID must be
|
|
68038
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
68039
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
65001
68040
|
# @param [String] fields
|
|
65002
68041
|
# Selector specifying which fields to include in a partial response.
|
|
65003
68042
|
# @param [String] quota_user
|
|
@@ -65017,13 +68056,14 @@ module Google
|
|
|
65017
68056
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
65018
68057
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
65019
68058
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
65020
|
-
def
|
|
65021
|
-
command = make_simple_command(:
|
|
68059
|
+
def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
68060
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
65022
68061
|
command.response_representation = Google::Apis::ComputePreview::Operation::Representation
|
|
65023
68062
|
command.response_class = Google::Apis::ComputePreview::Operation
|
|
65024
68063
|
command.params['project'] = project unless project.nil?
|
|
65025
68064
|
command.params['zone'] = zone unless zone.nil?
|
|
65026
|
-
command.params['
|
|
68065
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
68066
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
65027
68067
|
command.query['fields'] = fields unless fields.nil?
|
|
65028
68068
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
65029
68069
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -65031,25 +68071,13 @@ module Google
|
|
|
65031
68071
|
execute_or_queue_command(command, &block)
|
|
65032
68072
|
end
|
|
65033
68073
|
|
|
65034
|
-
#
|
|
68074
|
+
# Retrieves details of a specific zone VM extension policy within a project.
|
|
65035
68075
|
# @param [String] project
|
|
65036
68076
|
# Project ID for this request.
|
|
65037
68077
|
# @param [String] zone
|
|
65038
68078
|
# Name of the zone for this request.
|
|
65039
68079
|
# @param [String] vm_extension_policy
|
|
65040
|
-
# Name of the
|
|
65041
|
-
# @param [String] request_id
|
|
65042
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
65043
|
-
# that if you must retry your request, the server will know to ignore the
|
|
65044
|
-
# request if it has already been completed.
|
|
65045
|
-
# For example, consider a situation where you make an initial request and
|
|
65046
|
-
# the request times out. If you make the request again with the same
|
|
65047
|
-
# request ID, the server can check if original operation with the same
|
|
65048
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
65049
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
65050
|
-
# The request ID must be
|
|
65051
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
65052
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
68080
|
+
# Name of the VM extension policy resource to return.
|
|
65053
68081
|
# @param [String] fields
|
|
65054
68082
|
# Selector specifying which fields to include in a partial response.
|
|
65055
68083
|
# @param [String] quota_user
|
|
@@ -65061,22 +68089,21 @@ module Google
|
|
|
65061
68089
|
# Request-specific options
|
|
65062
68090
|
#
|
|
65063
68091
|
# @yield [result, err] Result & error if block supplied
|
|
65064
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
68092
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtensionPolicy] parsed result object
|
|
65065
68093
|
# @yieldparam err [StandardError] error object if request failed
|
|
65066
68094
|
#
|
|
65067
|
-
# @return [Google::Apis::ComputePreview::
|
|
68095
|
+
# @return [Google::Apis::ComputePreview::VmExtensionPolicy]
|
|
65068
68096
|
#
|
|
65069
68097
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
65070
68098
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
65071
68099
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
65072
|
-
def
|
|
65073
|
-
command = make_simple_command(:
|
|
65074
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
65075
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
68100
|
+
def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
68101
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
|
68102
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtensionPolicy::Representation
|
|
68103
|
+
command.response_class = Google::Apis::ComputePreview::VmExtensionPolicy
|
|
65076
68104
|
command.params['project'] = project unless project.nil?
|
|
65077
68105
|
command.params['zone'] = zone unless zone.nil?
|
|
65078
68106
|
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
|
65079
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
|
65080
68107
|
command.query['fields'] = fields unless fields.nil?
|
|
65081
68108
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
65082
68109
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -65084,13 +68111,13 @@ module Google
|
|
|
65084
68111
|
execute_or_queue_command(command, &block)
|
|
65085
68112
|
end
|
|
65086
68113
|
|
|
65087
|
-
# Retrieves details of a specific
|
|
68114
|
+
# Retrieves details of a specific VM extension within a project.
|
|
65088
68115
|
# @param [String] project
|
|
65089
68116
|
# Project ID for this request.
|
|
65090
68117
|
# @param [String] zone
|
|
65091
68118
|
# Name of the zone for this request.
|
|
65092
|
-
# @param [String]
|
|
65093
|
-
# Name of the VM extension
|
|
68119
|
+
# @param [String] extension_name
|
|
68120
|
+
# Required. Name of the VM extension for this request.
|
|
65094
68121
|
# @param [String] fields
|
|
65095
68122
|
# Selector specifying which fields to include in a partial response.
|
|
65096
68123
|
# @param [String] quota_user
|
|
@@ -65102,21 +68129,21 @@ module Google
|
|
|
65102
68129
|
# Request-specific options
|
|
65103
68130
|
#
|
|
65104
68131
|
# @yield [result, err] Result & error if block supplied
|
|
65105
|
-
# @yieldparam result [Google::Apis::ComputePreview::
|
|
68132
|
+
# @yieldparam result [Google::Apis::ComputePreview::VmExtension] parsed result object
|
|
65106
68133
|
# @yieldparam err [StandardError] error object if request failed
|
|
65107
68134
|
#
|
|
65108
|
-
# @return [Google::Apis::ComputePreview::
|
|
68135
|
+
# @return [Google::Apis::ComputePreview::VmExtension]
|
|
65109
68136
|
#
|
|
65110
68137
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
65111
68138
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
65112
68139
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
65113
|
-
def
|
|
65114
|
-
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/
|
|
65115
|
-
command.response_representation = Google::Apis::ComputePreview::
|
|
65116
|
-
command.response_class = Google::Apis::ComputePreview::
|
|
68140
|
+
def get_zone_vm_extension_policy_vm_extension(project, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
68141
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions/{extensionName}', options)
|
|
68142
|
+
command.response_representation = Google::Apis::ComputePreview::VmExtension::Representation
|
|
68143
|
+
command.response_class = Google::Apis::ComputePreview::VmExtension
|
|
65117
68144
|
command.params['project'] = project unless project.nil?
|
|
65118
68145
|
command.params['zone'] = zone unless zone.nil?
|
|
65119
|
-
command.params['
|
|
68146
|
+
command.params['extensionName'] = extension_name unless extension_name.nil?
|
|
65120
68147
|
command.query['fields'] = fields unless fields.nil?
|
|
65121
68148
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
65122
68149
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -65288,6 +68315,118 @@ module Google
|
|
|
65288
68315
|
execute_or_queue_command(command, &block)
|
|
65289
68316
|
end
|
|
65290
68317
|
|
|
68318
|
+
# Lists all VM extensions within a specific zone for a project.
|
|
68319
|
+
# This is a read-only API.
|
|
68320
|
+
# @param [String] project
|
|
68321
|
+
# Required. Project ID for this request.
|
|
68322
|
+
# @param [String] zone
|
|
68323
|
+
# Name of the zone for this request.
|
|
68324
|
+
# @param [String] filter
|
|
68325
|
+
# A filter expression that filters resources listed in the response. Most
|
|
68326
|
+
# Compute resources support two types of filter expressions:
|
|
68327
|
+
# expressions that support regular expressions and expressions that follow
|
|
68328
|
+
# API improvement proposal AIP-160.
|
|
68329
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
68330
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
68331
|
+
# operator, and the value that you want to use for filtering. The value
|
|
68332
|
+
# must be a string, a number, or a boolean. The operator
|
|
68333
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
68334
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
68335
|
+
# exclude instances named `example-instance` by specifying
|
|
68336
|
+
# `name != example-instance`.
|
|
68337
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
68338
|
+
# For example, to find all objects with `owner` label use:
|
|
68339
|
+
# ```
|
|
68340
|
+
# labels.owner:*
|
|
68341
|
+
# ```
|
|
68342
|
+
# You can also filter nested fields. For example, you could specify
|
|
68343
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
68344
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
68345
|
+
# on nested fields to filter based onresource labels.
|
|
68346
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
68347
|
+
# parentheses. For example:
|
|
68348
|
+
# ```
|
|
68349
|
+
# (scheduling.automaticRestart = true)
|
|
68350
|
+
# (cpuPlatform = "Intel Skylake")
|
|
68351
|
+
# ```
|
|
68352
|
+
# By default, each expression is an `AND` expression. However, you
|
|
68353
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
68354
|
+
# For example:
|
|
68355
|
+
# ```
|
|
68356
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
68357
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
68358
|
+
# (scheduling.automaticRestart = true)
|
|
68359
|
+
# ```
|
|
68360
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
68361
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
68362
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
68363
|
+
# `fieldname eq unquoted literal`
|
|
68364
|
+
# `fieldname eq 'single quoted literal'`
|
|
68365
|
+
# `fieldname eq "double quoted literal"`
|
|
68366
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
68367
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
68368
|
+
# library syntax.
|
|
68369
|
+
# The literal value must match the entire field.
|
|
68370
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
68371
|
+
# you would use `name ne .*instance`.
|
|
68372
|
+
# You cannot combine constraints on multiple fields using regular
|
|
68373
|
+
# expressions.
|
|
68374
|
+
# @param [Fixnum] max_results
|
|
68375
|
+
# The maximum number of results per page that should be returned.
|
|
68376
|
+
# If the number of available results is larger than `maxResults`,
|
|
68377
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
68378
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
68379
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
68380
|
+
# @param [String] order_by
|
|
68381
|
+
# Sorts list results by a certain order. By default, results
|
|
68382
|
+
# are returned in alphanumerical order based on the resource name.
|
|
68383
|
+
# You can also sort results in descending order based on the creation
|
|
68384
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
68385
|
+
# results based on the `creationTimestamp` field in
|
|
68386
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
68387
|
+
# resources like operations so that the newest operation is returned first.
|
|
68388
|
+
# Currently, only sorting by `name` or
|
|
68389
|
+
# `creationTimestamp desc` is supported.
|
|
68390
|
+
# @param [String] page_token
|
|
68391
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
68392
|
+
# `nextPageToken` returned by a previous list request to get
|
|
68393
|
+
# the next page of results.
|
|
68394
|
+
# @param [String] fields
|
|
68395
|
+
# Selector specifying which fields to include in a partial response.
|
|
68396
|
+
# @param [String] quota_user
|
|
68397
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
68398
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
68399
|
+
# @param [String] user_ip
|
|
68400
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
68401
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68402
|
+
# Request-specific options
|
|
68403
|
+
#
|
|
68404
|
+
# @yield [result, err] Result & error if block supplied
|
|
68405
|
+
# @yieldparam result [Google::Apis::ComputePreview::ListVmExtensionsResponse] parsed result object
|
|
68406
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
68407
|
+
#
|
|
68408
|
+
# @return [Google::Apis::ComputePreview::ListVmExtensionsResponse]
|
|
68409
|
+
#
|
|
68410
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
68411
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
68412
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
68413
|
+
def list_zone_vm_extension_policy_vm_extensions(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
68414
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions', options)
|
|
68415
|
+
command.response_representation = Google::Apis::ComputePreview::ListVmExtensionsResponse::Representation
|
|
68416
|
+
command.response_class = Google::Apis::ComputePreview::ListVmExtensionsResponse
|
|
68417
|
+
command.params['project'] = project unless project.nil?
|
|
68418
|
+
command.params['zone'] = zone unless zone.nil?
|
|
68419
|
+
command.query['filter'] = filter unless filter.nil?
|
|
68420
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
68421
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
68422
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
68423
|
+
command.query['fields'] = fields unless fields.nil?
|
|
68424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
68425
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
68426
|
+
command.set_api_version_header "2026-10-01-preview"
|
|
68427
|
+
execute_or_queue_command(command, &block)
|
|
68428
|
+
end
|
|
68429
|
+
|
|
65291
68430
|
# Modifies an existing zone VM extension policy within a project.
|
|
65292
68431
|
# @param [String] project
|
|
65293
68432
|
# Project ID for this request.
|