Class ProjectsResource.LocationsResource.ScopesResource
The "scopes" collection of methods.
Inherited Members
Namespace: Google.Apis.GKEHub.v1
Assembly: Google.Apis.GKEHub.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ScopesResource
Constructors
ScopesResource(IClientService)
Constructs a new resource.
Declaration
public ScopesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Namespaces
Gets the Namespaces resource.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.NamespacesResource Namespaces { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.NamespacesResource |
Rbacrolebindings
Gets the Rbacrolebindings resource.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.RbacrolebindingsResource Rbacrolebindings { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.RbacrolebindingsResource |
Methods
Create(Scope, string)
Creates a Scope.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.CreateRequest Create(Scope body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Scope | body | The body of the request. |
string | parent | Required. The parent (project and location) where the Scope will be created. Specified in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.CreateRequest |
Delete(string)
Deletes a Scope.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The Scope resource name in the format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.DeleteRequest |
Get(string)
Returns the details of a Scope.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The Scope resource name in the format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.GetRequest |
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.ScopesResource.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.ScopesResource.GetIamPolicyRequest |
List(string)
Lists Scopes.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent (project and location) where the Scope will be listed. Specified in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.ListRequest |
ListMemberships(string)
Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.ListMembershipsRequest ListMemberships(string scopeName)
Parameters
Type | Name | Description |
---|---|---|
string | scopeName | Required. Name of the Scope, in the format |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.ListMembershipsRequest |
ListPermitted(string)
Lists permitted Scopes.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.ListPermittedRequest ListPermitted(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent (project and location) where the Scope will be listed. Specified in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.ListPermittedRequest |
Patch(Scope, string)
Updates a scopes.
Declaration
public virtual ProjectsResource.LocationsResource.ScopesResource.PatchRequest Patch(Scope body, string name)
Parameters
Type | Name | Description |
---|---|---|
Scope | body | The body of the request. |
string | name | The resource name for the scope |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ScopesResource.PatchRequest |
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.ScopesResource.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.ScopesResource.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.ScopesResource.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.ScopesResource.TestIamPermissionsRequest |