Class SubscriptionPath (1.14.7)

public abstract class SubscriptionPath implements Serializable

A string wrapper representing a subscription. Should be structured like:

projects/<project number>/locations/<cloud region or zone>/subscriptions/<id>

Inheritance

java.lang.Object > SubscriptionPath

Implements

Serializable

Static Methods

newBuilder()

public static SubscriptionPath.Builder newBuilder()

Create a new SubscriptionPath builder.

Returns
Type Description
SubscriptionPath.Builder

parse(String path)

public static SubscriptionPath parse(String path)
Parameter
Name Description
path String
Returns
Type Description
SubscriptionPath
Exceptions
Type Description
ApiException

Constructors

SubscriptionPath()

public SubscriptionPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
Type Description
CloudRegionOrZone

locationPath()

public LocationPath locationPath()
Returns
Type Description
LocationPath

name()

public abstract SubscriptionName name()
Returns
Type Description
SubscriptionName

project()

public abstract ProjectIdOrNumber project()
Returns
Type Description
ProjectIdOrNumber

toBuilder()

public abstract SubscriptionPath.Builder toBuilder()
Returns
Type Description
SubscriptionPath.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides