Class SubscriptionPath (1.6.3)

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
TypeDescription
SubscriptionPath.Builder

parse(String path)

public static SubscriptionPath parse(String path)
Parameter
NameDescription
pathString
Returns
TypeDescription
SubscriptionPath
Exceptions
TypeDescription
ApiException

Constructors

SubscriptionPath()

public SubscriptionPath()

Methods

location()

public abstract CloudRegionOrZone location()
Returns
TypeDescription
CloudRegionOrZone

locationPath()

public LocationPath locationPath()
Returns
TypeDescription
LocationPath

name()

public abstract SubscriptionName name()
Returns
TypeDescription
SubscriptionName

project()

public abstract ProjectIdOrNumber project()
Returns
TypeDescription
ProjectIdOrNumber

toBuilder()

public abstract SubscriptionPath.Builder toBuilder()
Returns
TypeDescription
SubscriptionPath.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides