Class ProjectsResource.LocationsResource.ArtifactsResource
The "artifacts" collection of methods.
Inherited Members
Namespace: Google.Apis.ApigeeRegistry.v1
Assembly: Google.Apis.ApigeeRegistry.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ArtifactsResource
Constructors
ArtifactsResource(IClientService)
Constructs a new resource.
Declaration
public ArtifactsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Artifact, string)
Creates a specified artifact.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.CreateRequest Create(Artifact body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Artifact | body | The body of the request. |
string | parent | Required. The parent, which owns this collection of artifacts. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.CreateRequest |
Delete(string)
Removes a specified artifact.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the artifact to delete. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.DeleteRequest |
Get(string)
Returns a specified artifact.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the artifact to retrieve. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.GetRequest |
GetContents(string)
Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.GetContentsRequest GetContents(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the artifact whose contents should be retrieved. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.GetContentsRequest |
GetIamPolicy(string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.GetIamPolicyRequest |
List(string)
Returns matching artifacts.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent, which owns this collection of artifacts. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.ListRequest |
ReplaceArtifact(Artifact, string)
Used to replace a specified artifact.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.ReplaceArtifactRequest ReplaceArtifact(Artifact body, string name)
Parameters
Type | Name | Description |
---|---|---|
Artifact | body | The body of the request. |
string | name | Resource name. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.ReplaceArtifactRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
SetIamPolicyRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist,
this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is
designed to be used for building permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
Declaration
public virtual ProjectsResource.LocationsResource.ArtifactsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestIamPermissionsRequest | body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ArtifactsResource.TestIamPermissionsRequest |