ProjectsResource class
Constructors
- ProjectsResource(ApiRequester client)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disableXpnHost(
String project, {String? requestId, String? $fields}) → Future< Operation> - Disable this project as a shared VPC host project.
-
disableXpnResource(
ProjectsDisableXpnResourceRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - Disable a service resource (also known as service project) associated with this host project.
-
enableXpnHost(
String project, {String? requestId, String? $fields}) → Future< Operation> - Enable this project as a shared VPC host project.
-
enableXpnResource(
ProjectsEnableXpnResourceRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - 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.
-
get(
String project, {String? $fields}) → Future< Project> - Returns the specified Project resource.
-
getXpnHost(
String project, {String? $fields}) → Future< Project> - Gets the shared VPC host project that this project links to.
-
getXpnResources(
String project, {String? filter, int? maxResults, String? orderBy, String? pageToken, bool? returnPartialSuccess, String? $fields}) → Future< ProjectsGetXpnResources> - Gets service resources (a.k.a service project) associated with this host project.
-
listXpnHosts(
ProjectsListXpnHostsRequest request, String project, {String? filter, int? maxResults, String? orderBy, String? pageToken, bool? returnPartialSuccess, String? $fields}) → Future< XpnHostList> - Lists all shared VPC host projects visible to the user in an organization.
-
moveDisk(
DiskMoveRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - Starting September 29, 2025, you can't use the moveDisk API on new projects.
-
moveInstance(
InstanceMoveRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - Moves an instance and its attached persistent disks from one zone to another.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCloudArmorTier(
ProjectsSetCloudArmorTierRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - Sets the Cloud Armor tier of the project.
-
setCommonInstanceMetadata(
Metadata request, String project, {String? requestId, String? $fields}) → Future< Operation> - Sets metadata common to all instances within the specified project using the data included in the request.
-
setDefaultNetworkTier(
ProjectsSetDefaultNetworkTierRequest request, String project, {String? requestId, String? $fields}) → Future< Operation> - Sets the default network tier of the project.
-
setUsageExportBucket(
UsageExportLocation request, String project, {String? requestId, String? $fields}) → Future< Operation> - Enables the usage export feature and sets the usage export bucket where reports are stored.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited