Class: Google::Apis::VmwareengineV1::VMwareEngineService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::VmwareengineV1::VMwareEngineService
- Defined in:
- lib/google/apis/vmwareengine_v1/service.rb
Overview
VMware Engine API
The Google VMware Engine API lets you programmatically manage VMware environments.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_project_location_network_policy(parent, network_policy_object = nil, network_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new network policy in a given VMware Engine network of a project and location (region).
-
#create_project_location_private_cloud(parent, private_cloud_object = nil, private_cloud_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new
PrivateCloudresource in a given project and location. -
#create_project_location_private_cloud_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new cluster in a given private cloud.
-
#create_project_location_private_cloud_hcx_activation_key(parent, hcx_activation_key_object = nil, hcx_activation_key_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new HCX activation key in a given private cloud.
-
#create_project_location_private_connection(parent, private_connection_object = nil, private_connection_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new private connection that can be used for accessing private Clouds.
-
#create_project_location_vmware_engine_network(parent, vmware_engine_network_object = nil, request_id: nil, vmware_engine_network_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new VMware Engine network that can be used by a private cloud.
-
#delete_project_location_network_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a
NetworkPolicyresource. -
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Empty
Deletes a long-running operation.
-
#delete_project_location_private_cloud(name, delay_hours: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Schedules a
PrivateCloudresource for deletion. -
#delete_project_location_private_cloud_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a
Clusterresource. -
#delete_project_location_private_connection(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a
PrivateConnectionresource. -
#delete_project_location_vmware_engine_network(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a
VmwareEngineNetworkresource. -
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Location
Gets information about a location.
-
#get_project_location_network_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::NetworkPolicy
Retrieves a
NetworkPolicyresource by its resource name. -
#get_project_location_node_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::NodeType
Gets details of a single
NodeType. -
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_private_cloud(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::PrivateCloud
Retrieves a
PrivateCloudresource by its resource name. -
#get_project_location_private_cloud_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Cluster
Retrieves a
Clusterresource by its resource name. -
#get_project_location_private_cloud_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_private_cloud_hcx_activation_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::HcxActivationKey
Retrieves a
HcxActivationKeyresource by its resource name. -
#get_project_location_private_cloud_hcx_activation_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_private_cloud_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_private_cloud_subnet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Subnet
Gets details of a single subnet.
-
#get_project_location_private_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::PrivateConnection
Retrieves a
PrivateConnectionresource by its resource name. -
#get_project_location_vmware_engine_network(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::VmwareEngineNetwork
Retrieves a
VmwareEngineNetworkresource by its resource name. -
#initialize ⇒ VMwareEngineService
constructor
A new instance of VMwareEngineService.
-
#list_project_location_network_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse
Lists
NetworkPolicyresources in a specified project and location. -
#list_project_location_node_types(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListNodeTypesResponse
Lists node types.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_private_cloud_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListClustersResponse
Lists
Clusterresources in a given private cloud. -
#list_project_location_private_cloud_hcx_activation_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse
Lists
HcxActivationKeyresources in a given private cloud. -
#list_project_location_private_cloud_subnets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListSubnetsResponse
Lists subnets in a given private cloud.
-
#list_project_location_private_clouds(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateCloudsResponse
Lists
PrivateCloudresources in a given project and location. -
#list_project_location_private_connection_peering_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateConnectionPeeringRoutesResponse
Lists the private connection routes exchanged over a peering connection.
-
#list_project_location_private_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateConnectionsResponse
Lists
PrivateConnectionresources in a given project and location. -
#list_project_location_vmware_engine_networks(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListVmwareEngineNetworksResponse
Lists
VmwareEngineNetworkresources in a given project and location. -
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_network_policy(name, network_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a
NetworkPolicyresource. -
#patch_project_location_private_cloud(name, private_cloud_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a
PrivateCloudresource. -
#patch_project_location_private_cloud_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a
Clusterresource. -
#patch_project_location_private_cloud_subnet(name, subnet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Updates the parameters of a single subnet.
-
#patch_project_location_private_connection(name, private_connection_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a
PrivateConnectionresource. -
#patch_project_location_vmware_engine_network(name, vmware_engine_network_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a VMware Engine network resource.
-
#reset_private_cloud_nsx_credentials(private_cloud, reset_nsx_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Resets credentials of the NSX appliance.
-
#reset_private_cloud_vcenter_credentials(private_cloud, reset_vcenter_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Resets credentials of the Vcenter appliance.
-
#set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource.
-
#set_hcx_activation_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource.
-
#set_private_cloud_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource.
-
#show_project_location_private_cloud_nsx_credentials(private_cloud, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Credentials
Gets details of credentials for NSX appliance.
-
#show_project_location_private_cloud_vcenter_credentials(private_cloud, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Credentials
Gets details of credentials for Vcenter appliance.
-
#test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_hcx_activation_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_private_cloud_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#undelete_private_cloud(name, undelete_private_cloud_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud.
Constructor Details
#initialize ⇒ VMwareEngineService
Returns a new instance of VMwareEngineService.
46 47 48 49 50 51 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 46 def initialize super('https://vmwareengine.googleapis.com/', '', client_name: 'google-apis-vmwareengine_v1', client_version: Google::Apis::VmwareengineV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#create_project_location_network_policy(parent, network_policy_object = nil, network_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 172 def create_project_location_network_policy(parent, network_policy_object = nil, network_policy_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/networkPolicies', ) command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation command.request_object = network_policy_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['networkPolicyId'] = network_policy_id unless network_policy_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_private_cloud(parent, private_cloud_object = nil, private_cloud_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new PrivateCloud resource in a given project and location. Private
clouds of type STANDARD and TIME_LIMITED are zonal resources, STRETCHED
private clouds are regional. Creating a private cloud also creates a
management cluster for that private cloud.
631 632 633 634 635 636 637 638 639 640 641 642 643 644 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 631 def create_project_location_private_cloud(parent, private_cloud_object = nil, private_cloud_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/privateClouds', ) command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation command.request_object = private_cloud_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['privateCloudId'] = private_cloud_id unless private_cloud_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_private_cloud_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1199 def create_project_location_private_cloud_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/clusters', ) command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['clusterId'] = cluster_id unless cluster_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_private_cloud_hcx_activation_key(parent, hcx_activation_key_object = nil, hcx_activation_key_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new HCX activation key in a given private cloud.
1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1563 def create_project_location_private_cloud_hcx_activation_key(parent, hcx_activation_key_object = nil, hcx_activation_key_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/hcxActivationKeys', ) command.request_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation command.request_object = hcx_activation_key_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['hcxActivationKeyId'] = hcx_activation_key_id unless hcx_activation_key_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_private_connection(parent, private_connection_object = nil, private_connection_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new private connection that can be used for accessing private Clouds.
1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1942 def create_project_location_private_connection(parent, private_connection_object = nil, private_connection_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/privateConnections', ) command.request_representation = Google::Apis::VmwareengineV1::PrivateConnection::Representation command.request_object = private_connection_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['privateConnectionId'] = private_connection_id unless private_connection_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_vmware_engine_network(parent, vmware_engine_network_object = nil, request_id: nil, vmware_engine_network_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Creates a new VMware Engine network that can be used by a private cloud.
2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2252 def create_project_location_vmware_engine_network(parent, vmware_engine_network_object = nil, request_id: nil, vmware_engine_network_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/vmwareEngineNetworks', ) command.request_representation = Google::Apis::VmwareengineV1::VmwareEngineNetwork::Representation command.request_object = vmware_engine_network_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['vmwareEngineNetworkId'] = vmware_engine_network_id unless vmware_engine_network_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_network_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a NetworkPolicy resource. A network policy cannot be deleted when
NetworkService.state is set to RECONCILING for either its external IP or
internet access service.
223 224 225 226 227 228 229 230 231 232 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 223 def delete_project_location_network_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Empty
Deletes a long-running operation. This method indicates that the client is no
longer interested in the operation result. It does not cancel the operation.
If the server doesn't support this method, it returns google.rpc.Code.
UNIMPLEMENTED.
508 509 510 511 512 513 514 515 516 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 508 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Empty::Representation command.response_class = Google::Apis::VmwareengineV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_private_cloud(name, delay_hours: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Schedules a PrivateCloud resource for deletion. A PrivateCloud resource
scheduled for deletion has PrivateCloud.state set to DELETED and
expireTime set to the time when deletion is final and can no longer be
reversed. The delete operation is marked as done as soon as the PrivateCloud
is successfully scheduled for deletion (this also applies when delayHours is
set to zero), and the operation is not kept in pending state until
PrivateCloud is purged. PrivateCloud can be restored using
UndeletePrivateCloud method before the expireTime elapses. When expireTime
is reached, deletion is final and all private cloud resources are
irreversibly removed and billing stops. During the final removal process,
PrivateCloud.state is set to PURGING. PrivateCloud can be polled using
standard GET method for the whole period of deletion and purging. It will
not be returned only when it is completely purged.
697 698 699 700 701 702 703 704 705 706 707 708 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 697 def delete_project_location_private_cloud(name, delay_hours: nil, force: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['delayHours'] = delay_hours unless delay_hours.nil? command.query['force'] = force unless force.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_private_cloud_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a Cluster resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion. You
cannot delete the management cluster of a private cloud using this method.
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1242 def delete_project_location_private_cloud_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_private_connection(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a PrivateConnection resource. When a private connection is deleted
for a VMware Engine network, the connected network becomes inaccessible to
that VMware Engine network.
1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1993 def delete_project_location_private_connection(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_vmware_engine_network(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Deletes a VmwareEngineNetwork resource. You can only delete a VMware Engine
network after all resources that refer to it are deleted. For example, a
private cloud, a network peering, and a network policy can all refer to the
same VMware Engine network.
2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2309 def delete_project_location_vmware_engine_network(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Location
Gets information about a location.
73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 73 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Location::Representation command.response_class = Google::Apis::VmwareengineV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_network_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::NetworkPolicy
Retrieves a NetworkPolicy resource by its resource name.
257 258 259 260 261 262 263 264 265 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 257 def get_project_location_network_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation command.response_class = Google::Apis::VmwareengineV1::NetworkPolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_node_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::NodeType
Gets details of a single NodeType.
419 420 421 422 423 424 425 426 427 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 419 def get_project_location_node_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::NodeType::Representation command.response_class = Google::Apis::VmwareengineV1::NodeType command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
539 540 541 542 543 544 545 546 547 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 539 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::PrivateCloud
Retrieves a PrivateCloud resource by its resource name.
733 734 735 736 737 738 739 740 741 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 733 def get_project_location_private_cloud(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation command.response_class = Google::Apis::VmwareengineV1::PrivateCloud command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_cluster(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Cluster
Retrieves a Cluster resource by its resource name.
1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1276 def get_project_location_private_cloud_cluster(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Cluster::Representation command.response_class = Google::Apis::VmwareengineV1::Cluster command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1320 def get_project_location_private_cloud_cluster_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_hcx_activation_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::HcxActivationKey
Retrieves a HcxActivationKey resource by its resource name.
1600 1601 1602 1603 1604 1605 1606 1607 1608 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1600 def get_project_location_private_cloud_hcx_activation_key(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::HcxActivationKey::Representation command.response_class = Google::Apis::VmwareengineV1::HcxActivationKey command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_hcx_activation_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1644 def get_project_location_private_cloud_hcx_activation_key_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
777 778 779 780 781 782 783 784 785 786 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 777 def get_project_location_private_cloud_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_cloud_subnet(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Subnet
Gets details of a single subnet.
1798 1799 1800 1801 1802 1803 1804 1805 1806 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1798 def get_project_location_private_cloud_subnet(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::Subnet::Representation command.response_class = Google::Apis::VmwareengineV1::Subnet command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_private_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::PrivateConnection
Retrieves a PrivateConnection resource by its resource name. The resource
contains details of the private connection, such as connected network, routing
mode and state.
2029 2030 2031 2032 2033 2034 2035 2036 2037 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2029 def get_project_location_private_connection(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::PrivateConnection::Representation command.response_class = Google::Apis::VmwareengineV1::PrivateConnection command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_vmware_engine_network(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::VmwareEngineNetwork
Retrieves a VmwareEngineNetwork resource by its resource name. The resource
contains details of the VMware Engine network, such as its VMware Engine
network type, peered networks in a service project, and state (for example,
CREATING, ACTIVE, DELETING).
2347 2348 2349 2350 2351 2352 2353 2354 2355 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2347 def get_project_location_vmware_engine_network(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VmwareengineV1::VmwareEngineNetwork::Representation command.response_class = Google::Apis::VmwareengineV1::VmwareEngineNetwork command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_network_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse
Lists NetworkPolicy resources in a specified project and location.
317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 317 def list_project_location_network_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/networkPolicies', ) command.response_representation = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListNetworkPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_node_types(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListNodeTypesResponse
Lists node types
472 473 474 475 476 477 478 479 480 481 482 483 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 472 def list_project_location_node_types(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/nodeTypes', ) command.response_representation = Google::Apis::VmwareengineV1::ListNodeTypesResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListNodeTypesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED.
576 577 578 579 580 581 582 583 584 585 586 587 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 576 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', ) command.response_representation = Google::Apis::VmwareengineV1::ListOperationsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_cloud_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListClustersResponse
Lists Cluster resources in a given private cloud.
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1374 def list_project_location_private_cloud_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/clusters', ) command.response_representation = Google::Apis::VmwareengineV1::ListClustersResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListClustersResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_cloud_hcx_activation_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse
Lists HcxActivationKey resources in a given private cloud.
1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1687 def list_project_location_private_cloud_hcx_activation_keys(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/hcxActivationKeys', ) command.response_representation = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListHcxActivationKeysResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_cloud_subnets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListSubnetsResponse
Lists subnets in a given private cloud.
1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1840 def list_project_location_private_cloud_subnets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/subnets', ) command.response_representation = Google::Apis::VmwareengineV1::ListSubnetsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListSubnetsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_clouds(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateCloudsResponse
Lists PrivateCloud resources in a given project and location.
840 841 842 843 844 845 846 847 848 849 850 851 852 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 840 def list_project_location_private_clouds(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/privateClouds', ) command.response_representation = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListPrivateCloudsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_connection_peering_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateConnectionPeeringRoutesResponse
Lists the private connection routes exchanged over a peering connection.
2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2191 def list_project_location_private_connection_peering_routes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/peeringRoutes', ) command.response_representation = Google::Apis::VmwareengineV1::ListPrivateConnectionPeeringRoutesResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListPrivateConnectionPeeringRoutesResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_private_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListPrivateConnectionsResponse
Lists PrivateConnection resources in a given project and location.
2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2088 def list_project_location_private_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/privateConnections', ) command.response_representation = Google::Apis::VmwareengineV1::ListPrivateConnectionsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListPrivateConnectionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_vmware_engine_networks(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListVmwareEngineNetworksResponse
Lists VmwareEngineNetwork resources in a given project and location.
2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2406 def list_project_location_vmware_engine_networks(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/vmwareEngineNetworks', ) command.response_representation = Google::Apis::VmwareengineV1::ListVmwareEngineNetworksResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListVmwareEngineNetworksResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::ListLocationsResponse
Lists information about the supported locations for this service.
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 113 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', ) command.response_representation = Google::Apis::VmwareengineV1::ListLocationsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_network_policy(name, network_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a NetworkPolicy resource. Only the following fields can be updated:
internet_access, external_ip, edge_services_cidr. Only fields specified
in updateMask are applied. When updating a network policy, the external IP
network service can only be disabled if there are no external IP addresses
present in the scope of the policy. Also, a NetworkService cannot be updated
when NetworkService.state is set to RECONCILING. During operation
processing, the resource is temporarily in the ACTIVE state before the
operation fully completes. For that period of time, you can't update the
resource. Use the operation status to determine when the processing fully
completes.
382 383 384 385 386 387 388 389 390 391 392 393 394 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 382 def patch_project_location_network_policy(name, network_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::NetworkPolicy::Representation command.request_object = network_policy_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_private_cloud(name, private_cloud_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a PrivateCloud resource. Only the following fields can be updated:
description. Only fields specified in updateMask are applied. During
operation processing, the resource is temporarily in the ACTIVE state before
the operation fully completes. For that period of time, you can't update the
resource. Use the operation status to determine when the processing fully
completes.
892 893 894 895 896 897 898 899 900 901 902 903 904 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 892 def patch_project_location_private_cloud(name, private_cloud_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::PrivateCloud::Representation command.request_object = private_cloud_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_private_cloud_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a Cluster resource. Only fields specified in updateMask are
applied. During operation processing, the resource is temporarily in the
ACTIVE state before the operation fully completes. For that period of time,
you can't update the resource. Use the operation status to determine when the
processing fully completes.
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1428 def patch_project_location_private_cloud_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::Cluster::Representation command.request_object = cluster_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_private_cloud_subnet(name, subnet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Updates the parameters of a single subnet. Only fields specified in
update_mask are applied. Note: This API is synchronous and always returns a
successful google.longrunning.Operation (LRO). The returned LRO will only
have done and response fields.
1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1885 def patch_project_location_private_cloud_subnet(name, subnet_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::Subnet::Representation command.request_object = subnet_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_private_connection(name, private_connection_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a PrivateConnection resource. Only description and routing_mode
fields can be updated. Only fields specified in updateMask are applied.
2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2145 def patch_project_location_private_connection(name, private_connection_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::PrivateConnection::Representation command.request_object = private_connection_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_vmware_engine_network(name, vmware_engine_network_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Modifies a VMware Engine network resource. Only the following fields can be
updated: description. Only fields specified in updateMask are applied.
2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 2464 def patch_project_location_vmware_engine_network(name, vmware_engine_network_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::VmwareengineV1::VmwareEngineNetwork::Representation command.request_object = vmware_engine_network_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_private_cloud_nsx_credentials(private_cloud, reset_nsx_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Resets credentials of the NSX appliance.
930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 930 def reset_private_cloud_nsx_credentials(private_cloud, reset_nsx_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+privateCloud}:resetNsxCredentials', ) command.request_representation = Google::Apis::VmwareengineV1::ResetNsxCredentialsRequest::Representation command.request_object = reset_nsx_credentials_request_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['privateCloud'] = private_cloud unless private_cloud.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_private_cloud_vcenter_credentials(private_cloud, reset_vcenter_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Resets credentials of the Vcenter appliance.
966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 966 def reset_private_cloud_vcenter_credentials(private_cloud, reset_vcenter_credentials_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+privateCloud}:resetVcenterCredentials', ) command.request_representation = Google::Apis::VmwareengineV1::ResetVcenterCredentialsRequest::Representation command.request_object = reset_vcenter_credentials_request_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['privateCloud'] = private_cloud unless private_cloud.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1468 def set_cluster_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_hcx_activation_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1724 def set_hcx_activation_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_private_cloud_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and
PERMISSION_DENIED errors.
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1003 def set_private_cloud_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::VmwareengineV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::VmwareengineV1::Policy::Representation command.response_class = Google::Apis::VmwareengineV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#show_project_location_private_cloud_nsx_credentials(private_cloud, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Credentials
Gets details of credentials for NSX appliance.
1038 1039 1040 1041 1042 1043 1044 1045 1046 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1038 def show_project_location_private_cloud_nsx_credentials(private_cloud, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+privateCloud}:showNsxCredentials', ) command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation command.response_class = Google::Apis::VmwareengineV1::Credentials command.params['privateCloud'] = private_cloud unless private_cloud.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#show_project_location_private_cloud_vcenter_credentials(private_cloud, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Credentials
Gets details of credentials for Vcenter appliance.
1071 1072 1073 1074 1075 1076 1077 1078 1079 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1071 def show_project_location_private_cloud_vcenter_credentials(private_cloud, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+privateCloud}:showVcenterCredentials', ) command.response_representation = Google::Apis::VmwareengineV1::Credentials::Representation command.response_class = Google::Apis::VmwareengineV1::Credentials command.params['privateCloud'] = private_cloud unless private_cloud.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_cluster_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1507 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_hcx_activation_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1763 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_private_cloud_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1108 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::VmwareengineV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::VmwareengineV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::VmwareengineV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#undelete_private_cloud(name, undelete_private_cloud_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VmwareengineV1::Operation
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud. A PrivateCloud resource scheduled for deletion has
PrivateCloud.state set to DELETED and PrivateCloud.expireTime set to the
time when deletion can no longer be reversed.
1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/google/apis/vmwareengine_v1/service.rb', line 1147 def undelete_private_cloud(name, undelete_private_cloud_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:undelete', ) command.request_representation = Google::Apis::VmwareengineV1::UndeletePrivateCloudRequest::Representation command.request_object = undelete_private_cloud_request_object command.response_representation = Google::Apis::VmwareengineV1::Operation::Representation command.response_class = Google::Apis::VmwareengineV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |