public sealed class FeedName : IResourceName, IEquatable<FeedName>
Resource name for the Feed
resource.
Namespace
Google.Cloud.Asset.V1Assembly
Google.Cloud.Asset.V1.dll
Constructors
FeedName(String, String)
public FeedName(string projectId, string feedId)
Constructs a new instance of a FeedName class from the component parts of pattern
projects/{project}/feeds/{feed}
Type | Name | Description |
---|---|---|
String | projectId | The |
String | feedId | The |
Properties
FeedId
public string FeedId { get; }
The Feed
ID. May be null
, depending on which resource name is contained by this instance.
Type | Description |
---|---|
String |
FolderId
public string FolderId { get; }
The Folder
ID. May be null
, depending on which resource name is contained by this instance.
Type | Description |
---|---|
String |
IsKnownPattern
public bool IsKnownPattern { get; }
Whether this instance contains a resource name with a known pattern.
Type | Description |
---|---|
Boolean |
OrganizationId
public string OrganizationId { get; }
The Organization
ID. May be null
, depending on which resource name is contained by this
instance.
Type | Description |
---|---|
String |
ProjectId
public string ProjectId { get; }
The Project
ID. May be null
, depending on which resource name is contained by this instance.
Type | Description |
---|---|
String |
Type
public FeedName.ResourceNameType Type { get; }
The FeedName.ResourceNameType of the contained resource name.
Type | Description |
---|---|
FeedName.ResourceNameType |
UnparsedResource
public UnparsedResourceName UnparsedResource { get; }
The contained UnparsedResourceName. Only non-null
if this instance contains an
unparsed resource name.
Type | Description |
---|---|
UnparsedResourceName |
Methods
Format(String, String)
public static string Format(string projectId, string feedId)
Formats the IDs into the string representation of this FeedName with pattern
projects/{project}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | projectId | The |
String | feedId | The |
Type | Description |
---|---|
String | The string representation of this FeedName with pattern |
FormatFolderFeed(String, String)
public static string FormatFolderFeed(string folderId, string feedId)
Formats the IDs into the string representation of this FeedName with pattern
folders/{folder}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | folderId | The |
String | feedId | The |
Type | Description |
---|---|
String | The string representation of this FeedName with pattern |
FormatOrganizationFeed(String, String)
public static string FormatOrganizationFeed(string organizationId, string feedId)
Formats the IDs into the string representation of this FeedName with pattern
organizations/{organization}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | organizationId | The |
String | feedId | The |
Type | Description |
---|---|
String | The string representation of this FeedName with pattern
|
FormatProjectFeed(String, String)
public static string FormatProjectFeed(string projectId, string feedId)
Formats the IDs into the string representation of this FeedName with pattern
projects/{project}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | projectId | The |
String | feedId | The |
Type | Description |
---|---|
String | The string representation of this FeedName with pattern |
FromFolderFeed(String, String)
public static FeedName FromFolderFeed(string folderId, string feedId)
Creates a FeedName with the pattern folders/{folder}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | folderId | The |
String | feedId | The |
Type | Description |
---|---|
FeedName | A new instance of FeedName constructed from the provided ids. |
FromOrganizationFeed(String, String)
public static FeedName FromOrganizationFeed(string organizationId, string feedId)
Creates a FeedName with the pattern organizations/{organization}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | organizationId | The |
String | feedId | The |
Type | Description |
---|---|
FeedName | A new instance of FeedName constructed from the provided ids. |
FromProjectFeed(String, String)
public static FeedName FromProjectFeed(string projectId, string feedId)
Creates a FeedName with the pattern projects/{project}/feeds/{feed}
.
Type | Name | Description |
---|---|---|
String | projectId | The |
String | feedId | The |
Type | Description |
---|---|
FeedName | A new instance of FeedName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static FeedName FromUnparsed(UnparsedResourceName unparsedResourceName)
Creates a FeedName containing an unparsed resource name.
Type | Name | Description |
---|---|---|
UnparsedResourceName | unparsedResourceName | The unparsed resource name. Must not be |
Type | Description |
---|---|
FeedName | A new instance of FeedName containing the provided |
GetHashCode()
public override int GetHashCode()
Returns a hash code for this resource name.
Type | Description |
---|---|
Int32 |
Parse(String)
public static FeedName Parse(string feedName)
Parses the given resource name string into a new FeedName instance.
Type | Name | Description |
---|---|---|
String | feedName | The resource name in string form. Must not be |
Type | Description |
---|---|
FeedName | The parsed FeedName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/feeds/{feed}
folders/{folder}/feeds/{feed}
organizations/{organization}/feeds/{feed}
Parse(String, Boolean)
public static FeedName Parse(string feedName, bool allowUnparsed)
Parses the given resource name string into a new FeedName instance; optionally allowing an unparseable resource name.
Type | Name | Description |
---|---|---|
String | feedName | The resource name in string form. Must not be |
Boolean | allowUnparsed | If |
Type | Description |
---|---|
FeedName | The parsed FeedName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/feeds/{feed}
folders/{folder}/feeds/{feed}
organizations/{organization}/feeds/{feed}
allowUnparsed
is true
.
ToString()
public override string ToString()
The string representation of the resource name.
Type | Description |
---|---|
String | The string representation of the resource name. |
TryParse(String, out FeedName)
public static bool TryParse(string feedName, out FeedName result)
Tries to parse the given resource name string into a new FeedName instance.
Type | Name | Description |
---|---|---|
String | feedName | The resource name in string form. Must not be |
FeedName | result | When this method returns, the parsed FeedName, or |
Type | Description |
---|---|
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/feeds/{feed}
folders/{folder}/feeds/{feed}
organizations/{organization}/feeds/{feed}
TryParse(String, Boolean, out FeedName)
public static bool TryParse(string feedName, bool allowUnparsed, out FeedName result)
Tries to parse the given resource name string into a new FeedName instance; optionally allowing an unparseable resource name.
Type | Name | Description |
---|---|---|
String | feedName | The resource name in string form. Must not be |
Boolean | allowUnparsed | If |
FeedName | result | When this method returns, the parsed FeedName, or |
Type | Description |
---|---|
Boolean |
|
To parse successfully, the resource name must be formatted as one of the following:
projects/{project}/feeds/{feed}
folders/{folder}/feeds/{feed}
organizations/{organization}/feeds/{feed}
allowUnparsed
is true
.
Operators
Equality(FeedName, FeedName)
public static bool operator ==(FeedName a, FeedName b)
Type | Name | Description |
---|---|---|
FeedName | a | |
FeedName | b |
Type | Description |
---|---|
Boolean |
Inequality(FeedName, FeedName)
public static bool operator !=(FeedName a, FeedName b)
Type | Name | Description |
---|---|---|
FeedName | a | |
FeedName | b |
Type | Description |
---|---|
Boolean |