Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
DisableXpnHost(string)
Disable this project as a shared VPC host project.
Declaration
public virtual ProjectsResource.DisableXpnHostRequest DisableXpnHost(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.DisableXpnHostRequest |
DisableXpnResource(ProjectsDisableXpnResourceRequest, string)
Disable a service resource (also known as service project) associated with this host project.
Declaration
public virtual ProjectsResource.DisableXpnResourceRequest DisableXpnResource(ProjectsDisableXpnResourceRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsDisableXpnResourceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.DisableXpnResourceRequest |
EnableXpnHost(string)
Enable this project as a shared VPC host project.
Declaration
public virtual ProjectsResource.EnableXpnHostRequest EnableXpnHost(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.EnableXpnHostRequest |
EnableXpnResource(ProjectsEnableXpnResourceRequest, string)
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.
Declaration
public virtual ProjectsResource.EnableXpnResourceRequest EnableXpnResource(ProjectsEnableXpnResourceRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsEnableXpnResourceRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.EnableXpnResourceRequest |
Get(string)
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.
Declaration
public virtual ProjectsResource.GetRequest Get(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.GetRequest |
GetXpnHost(string)
Gets the shared VPC host project that this project links to. May be empty if no link exists.
Declaration
public virtual ProjectsResource.GetXpnHostRequest GetXpnHost(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.GetXpnHostRequest |
GetXpnResources(string)
Gets service resources (a.k.a service project) associated with this host project.
Declaration
public virtual ProjectsResource.GetXpnResourcesRequest GetXpnResources(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.GetXpnResourcesRequest |
ListXpnHosts(ProjectsListXpnHostsRequest, string)
Lists all shared VPC host projects visible to the user in an organization.
Declaration
public virtual ProjectsResource.ListXpnHostsRequest ListXpnHosts(ProjectsListXpnHostsRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsListXpnHostsRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.ListXpnHostsRequest |
MoveDisk(DiskMoveRequest, string)
Moves a persistent disk from one zone to another.
Declaration
public virtual ProjectsResource.MoveDiskRequest MoveDisk(DiskMoveRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| DiskMoveRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MoveDiskRequest |
MoveInstance(InstanceMoveRequest, string)
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. [Deprecated] This method is deprecated. See moving instance across zones instead.
Declaration
public virtual ProjectsResource.MoveInstanceRequest MoveInstance(InstanceMoveRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| InstanceMoveRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MoveInstanceRequest |
SetCloudArmorTier(ProjectsSetCloudArmorTierRequest, string)
Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.
Declaration
public virtual ProjectsResource.SetCloudArmorTierRequest SetCloudArmorTier(ProjectsSetCloudArmorTierRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsSetCloudArmorTierRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetCloudArmorTierRequest |
SetCommonInstanceMetadata(Metadata, string)
Sets metadata common to all instances within the specified project using the data included in the request.
Declaration
public virtual ProjectsResource.SetCommonInstanceMetadataRequest SetCommonInstanceMetadata(Metadata body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| Metadata | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetCommonInstanceMetadataRequest |
SetDefaultNetworkTier(ProjectsSetDefaultNetworkTierRequest, string)
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.
Declaration
public virtual ProjectsResource.SetDefaultNetworkTierRequest SetDefaultNetworkTier(ProjectsSetDefaultNetworkTierRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsSetDefaultNetworkTierRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetDefaultNetworkTierRequest |
SetManagedProtectionTier(ProjectsSetManagedProtectionTierRequest, string)
Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.
Declaration
public virtual ProjectsResource.SetManagedProtectionTierRequest SetManagedProtectionTier(ProjectsSetManagedProtectionTierRequest body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| ProjectsSetManagedProtectionTierRequest | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetManagedProtectionTierRequest |
SetUsageExportBucket(UsageExportLocation, string)
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.
Declaration
public virtual ProjectsResource.SetUsageExportBucketRequest SetUsageExportBucket(UsageExportLocation body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| UsageExportLocation | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetUsageExportBucketRequest |