public sealed class ProjectsClientImpl : ProjectsClient
Projects client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Projects API.
Constructors
ProjectsClientImpl(Projects.ProjectsClient, ProjectsSettings, ILogger)
public ProjectsClientImpl(Projects.ProjectsClient grpcClient, ProjectsSettings settings, ILogger logger)
Constructs a client wrapper for the Projects service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | Projects.ProjectsClient The underlying gRPC client. |
settings | ProjectsSettings The base ProjectsSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
DisableXpnHostOperationsClient
public override OperationsClient DisableXpnHostOperationsClient { get; }
The long-running operations client for DisableXpnHost
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DisableXpnResourceOperationsClient
public override OperationsClient DisableXpnResourceOperationsClient { get; }
The long-running operations client for DisableXpnResource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
EnableXpnHostOperationsClient
public override OperationsClient EnableXpnHostOperationsClient { get; }
The long-running operations client for EnableXpnHost
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
EnableXpnResourceOperationsClient
public override OperationsClient EnableXpnResourceOperationsClient { get; }
The long-running operations client for EnableXpnResource
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override Projects.ProjectsClient GrpcClient { get; }
The underlying gRPC Projects client
Property Value | |
---|---|
Type | Description |
Projects.ProjectsClient |
MoveDiskOperationsClient
public override OperationsClient MoveDiskOperationsClient { get; }
The long-running operations client for MoveDisk
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
MoveInstanceOperationsClient
public override OperationsClient MoveInstanceOperationsClient { get; }
The long-running operations client for MoveInstance
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetCommonInstanceMetadataOperationsClient
public override OperationsClient SetCommonInstanceMetadataOperationsClient { get; }
The long-running operations client for SetCommonInstanceMetadata
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetDefaultNetworkTierOperationsClient
public override OperationsClient SetDefaultNetworkTierOperationsClient { get; }
The long-running operations client for SetDefaultNetworkTier
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
SetUsageExportBucketOperationsClient
public override OperationsClient SetUsageExportBucketOperationsClient { get; }
The long-running operations client for SetUsageExportBucket
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
DisableXpnHost(DisableXpnHostProjectRequest, CallSettings)
public override Operation<Operation, Operation> DisableXpnHost(DisableXpnHostProjectRequest request, CallSettings callSettings = null)
Disable this project as a shared VPC host project.
Parameters | |
---|---|
Name | Description |
request | DisableXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
DisableXpnHostAsync(DisableXpnHostProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DisableXpnHostAsync(DisableXpnHostProjectRequest request, CallSettings callSettings = null)
Disable this project as a shared VPC host project.
Parameters | |
---|---|
Name | Description |
request | DisableXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
DisableXpnResource(DisableXpnResourceProjectRequest, CallSettings)
public override Operation<Operation, Operation> DisableXpnResource(DisableXpnResourceProjectRequest request, CallSettings callSettings = null)
Disable a service resource (also known as service project) associated with this host project.
Parameters | |
---|---|
Name | Description |
request | DisableXpnResourceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
DisableXpnResourceAsync(DisableXpnResourceProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DisableXpnResourceAsync(DisableXpnResourceProjectRequest request, CallSettings callSettings = null)
Disable a service resource (also known as service project) associated with this host project.
Parameters | |
---|---|
Name | Description |
request | DisableXpnResourceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
EnableXpnHost(EnableXpnHostProjectRequest, CallSettings)
public override Operation<Operation, Operation> EnableXpnHost(EnableXpnHostProjectRequest request, CallSettings callSettings = null)
Enable this project as a shared VPC host project.
Parameters | |
---|---|
Name | Description |
request | EnableXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
EnableXpnHostAsync(EnableXpnHostProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> EnableXpnHostAsync(EnableXpnHostProjectRequest request, CallSettings callSettings = null)
Enable this project as a shared VPC host project.
Parameters | |
---|---|
Name | Description |
request | EnableXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
EnableXpnResource(EnableXpnResourceProjectRequest, CallSettings)
public override Operation<Operation, Operation> EnableXpnResource(EnableXpnResourceProjectRequest request, CallSettings callSettings = null)
Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.
Parameters | |
---|---|
Name | Description |
request | EnableXpnResourceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
EnableXpnResourceAsync(EnableXpnResourceProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> EnableXpnResourceAsync(EnableXpnResourceProjectRequest request, CallSettings callSettings = null)
Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.
Parameters | |
---|---|
Name | Description |
request | EnableXpnResourceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Get(GetProjectRequest, CallSettings)
public override Project Get(GetProjectRequest request, CallSettings callSettings = null)
Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas
field). To exclude one or more fields, set your request's fields
query parameter to only include the fields you need. For example, to only include the id
and selfLink
fields, add the query parameter ?fields=id,selfLink
to your request.
Parameters | |
---|---|
Name | Description |
request | GetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Project | The RPC response. |
GetAsync(GetProjectRequest, CallSettings)
public override Task<Project> GetAsync(GetProjectRequest request, CallSettings callSettings = null)
Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the quotas
field). To exclude one or more fields, set your request's fields
query parameter to only include the fields you need. For example, to only include the id
and selfLink
fields, add the query parameter ?fields=id,selfLink
to your request.
Parameters | |
---|---|
Name | Description |
request | GetProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Project> | A Task containing the RPC response. |
GetXpnHost(GetXpnHostProjectRequest, CallSettings)
public override Project GetXpnHost(GetXpnHostProjectRequest request, CallSettings callSettings = null)
Gets the shared VPC host project that this project links to. May be empty if no link exists.
Parameters | |
---|---|
Name | Description |
request | GetXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Project | The RPC response. |
GetXpnHostAsync(GetXpnHostProjectRequest, CallSettings)
public override Task<Project> GetXpnHostAsync(GetXpnHostProjectRequest request, CallSettings callSettings = null)
Gets the shared VPC host project that this project links to. May be empty if no link exists.
Parameters | |
---|---|
Name | Description |
request | GetXpnHostProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Project> | A Task containing the RPC response. |
GetXpnResources(GetXpnResourcesProjectsRequest, CallSettings)
public override PagedEnumerable<ProjectsGetXpnResources, XpnResourceId> GetXpnResources(GetXpnResourcesProjectsRequest request, CallSettings callSettings = null)
Gets service resources (a.k.a service project) associated with this host project.
Parameters | |
---|---|
Name | Description |
request | GetXpnResourcesProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ProjectsGetXpnResources, XpnResourceId> | A pageable sequence of XpnResourceId resources. |
GetXpnResourcesAsync(GetXpnResourcesProjectsRequest, CallSettings)
public override PagedAsyncEnumerable<ProjectsGetXpnResources, XpnResourceId> GetXpnResourcesAsync(GetXpnResourcesProjectsRequest request, CallSettings callSettings = null)
Gets service resources (a.k.a service project) associated with this host project.
Parameters | |
---|---|
Name | Description |
request | GetXpnResourcesProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ProjectsGetXpnResources, XpnResourceId> | A pageable asynchronous sequence of XpnResourceId resources. |
ListXpnHosts(ListXpnHostsProjectsRequest, CallSettings)
public override PagedEnumerable<XpnHostList, Project> ListXpnHosts(ListXpnHostsProjectsRequest request, CallSettings callSettings = null)
Lists all shared VPC host projects visible to the user in an organization.
Parameters | |
---|---|
Name | Description |
request | ListXpnHostsProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<XpnHostList, Project> | A pageable sequence of Project resources. |
ListXpnHostsAsync(ListXpnHostsProjectsRequest, CallSettings)
public override PagedAsyncEnumerable<XpnHostList, Project> ListXpnHostsAsync(ListXpnHostsProjectsRequest request, CallSettings callSettings = null)
Lists all shared VPC host projects visible to the user in an organization.
Parameters | |
---|---|
Name | Description |
request | ListXpnHostsProjectsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<XpnHostList, Project> | A pageable asynchronous sequence of Project resources. |
MoveDisk(MoveDiskProjectRequest, CallSettings)
public override Operation<Operation, Operation> MoveDisk(MoveDiskProjectRequest request, CallSettings callSettings = null)
Moves a persistent disk from one zone to another.
Parameters | |
---|---|
Name | Description |
request | MoveDiskProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
MoveDiskAsync(MoveDiskProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> MoveDiskAsync(MoveDiskProjectRequest request, CallSettings callSettings = null)
Moves a persistent disk from one zone to another.
Parameters | |
---|---|
Name | Description |
request | MoveDiskProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
MoveInstance(MoveInstanceProjectRequest, CallSettings)
public override Operation<Operation, Operation> MoveInstance(MoveInstanceProjectRequest request, CallSettings callSettings = null)
Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.
Parameters | |
---|---|
Name | Description |
request | MoveInstanceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
MoveInstanceAsync(MoveInstanceProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> MoveInstanceAsync(MoveInstanceProjectRequest request, CallSettings callSettings = null)
Moves an instance and its attached persistent disks from one zone to another. Note: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the known issue.
Parameters | |
---|---|
Name | Description |
request | MoveInstanceProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest, CallSettings)
public override Operation<Operation, Operation> SetCommonInstanceMetadata(SetCommonInstanceMetadataProjectRequest request, CallSettings callSettings = null)
Sets metadata common to all instances within the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | SetCommonInstanceMetadataProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetCommonInstanceMetadataAsync(SetCommonInstanceMetadataProjectRequest request, CallSettings callSettings = null)
Sets metadata common to all instances within the specified project using the data included in the request.
Parameters | |
---|---|
Name | Description |
request | SetCommonInstanceMetadataProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest, CallSettings)
public override Operation<Operation, Operation> SetDefaultNetworkTier(SetDefaultNetworkTierProjectRequest request, CallSettings callSettings = null)
Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.
Parameters | |
---|---|
Name | Description |
request | SetDefaultNetworkTierProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetDefaultNetworkTierAsync(SetDefaultNetworkTierProjectRequest request, CallSettings callSettings = null)
Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.
Parameters | |
---|---|
Name | Description |
request | SetDefaultNetworkTierProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
SetUsageExportBucket(SetUsageExportBucketProjectRequest, CallSettings)
public override Operation<Operation, Operation> SetUsageExportBucket(SetUsageExportBucketProjectRequest request, CallSettings callSettings = null)
Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
Parameters | |
---|---|
Name | Description |
request | SetUsageExportBucketProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> SetUsageExportBucketAsync(SetUsageExportBucketProjectRequest request, CallSettings callSettings = null)
Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
Parameters | |
---|---|
Name | Description |
request | SetUsageExportBucketProjectRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |