Show / Hide Table of Contents

Class ProjectsResource.PlatformsResource.PoliciesResource

The "policies" collection of methods.

Inheritance
object
ProjectsResource.PlatformsResource.PoliciesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.BinaryAuthorization.v1
Assembly: Google.Apis.BinaryAuthorization.v1.dll
Syntax
public class ProjectsResource.PlatformsResource.PoliciesResource

Constructors

PoliciesResource(IClientService)

Constructs a new resource.

Declaration
public PoliciesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(PlatformPolicy, string)

Creates a platform policy, and returns a copy of it. Returns NOT_FOUND if the project or platform doesn't exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the policy already exists, and INVALID_ARGUMENT if the policy contains a platform-specific policy that does not match the platform value specified in the URL.

Declaration
public virtual ProjectsResource.PlatformsResource.PoliciesResource.CreateRequest Create(PlatformPolicy body, string parent)
Parameters
Type Name Description
PlatformPolicy body

The body of the request.

string parent

Required. The parent of this platform policy.

Returns
Type Description
ProjectsResource.PlatformsResource.PoliciesResource.CreateRequest

Delete(string)

Deletes a platform policy. Returns NOT_FOUND if the policy doesn't exist.

Declaration
public virtual ProjectsResource.PlatformsResource.PoliciesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the platform policy to delete, in the format projects/*/platforms/*/policies/*.

Returns
Type Description
ProjectsResource.PlatformsResource.PoliciesResource.DeleteRequest

Get(string)

Gets a platform policy. Returns NOT_FOUND if the policy doesn't exist.

Declaration
public virtual ProjectsResource.PlatformsResource.PoliciesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the platform policy to retrieve in the format projects/*/platforms/*/policies/*.

Returns
Type Description
ProjectsResource.PlatformsResource.PoliciesResource.GetRequest

List(string)

Lists platform policies owned by a project in the specified platform. Returns INVALID_ARGUMENT if the project or the platform doesn't exist.

Declaration
public virtual ProjectsResource.PlatformsResource.PoliciesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The resource name of the platform associated with the platform policies using the format projects/*/platforms/*.

Returns
Type Description
ProjectsResource.PlatformsResource.PoliciesResource.ListRequest

ReplacePlatformPolicy(PlatformPolicy, string)

Replaces a platform policy. Returns NOT_FOUND if the policy doesn't exist.

Declaration
public virtual ProjectsResource.PlatformsResource.PoliciesResource.ReplacePlatformPolicyRequest ReplacePlatformPolicy(PlatformPolicy body, string name)
Parameters
Type Name Description
PlatformPolicy body

The body of the request.

string name

Output only. The relative resource name of the Binary Authorization platform policy, in the form of projects/*/platforms/*/policies/*.

Returns
Type Description
ProjectsResource.PlatformsResource.PoliciesResource.ReplacePlatformPolicyRequest
In this article
Back to top Generated by DocFX