Class OrganizationsResource.SourcesResource
The "sources" collection of methods.
Inherited Members
Namespace: Google.Apis.SecurityCommandCenter.v1
Assembly: Google.Apis.SecurityCommandCenter.v1.dll
Syntax
public class OrganizationsResource.SourcesResource
Constructors
SourcesResource(IClientService)
Constructs a new resource.
Declaration
public SourcesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Findings
Gets the Findings resource.
Declaration
public virtual OrganizationsResource.SourcesResource.FindingsResource Findings { get; }
Property Value
Type | Description |
---|---|
OrganizationsResource.SourcesResource.FindingsResource |
Methods
Create(Source, string)
Creates a source.
Declaration
public virtual OrganizationsResource.SourcesResource.CreateRequest Create(Source body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Source | body | The body of the request. |
string | parent | Required. Resource name of the new source's parent. Its format should be
|
Returns
Type | Description |
---|---|
OrganizationsResource.SourcesResource.CreateRequest |
Get(string)
Gets a source.
Declaration
public virtual OrganizationsResource.SourcesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Relative resource name of the source. Its format is
|
Returns
Type | Description |
---|---|
OrganizationsResource.SourcesResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, string)
Gets the access control policy on the specified Source.
Declaration
public virtual OrganizationsResource.SourcesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
GetIamPolicyRequest | body | The body of the request. |
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 |
---|---|
OrganizationsResource.SourcesResource.GetIamPolicyRequest |
List(string)
Lists all sources belonging to an organization.
Declaration
public virtual OrganizationsResource.SourcesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Resource name of the parent of sources to list. Its format should be
|
Returns
Type | Description |
---|---|
OrganizationsResource.SourcesResource.ListRequest |
Patch(Source, string)
Updates a source.
Declaration
public virtual OrganizationsResource.SourcesResource.PatchRequest Patch(Source body, string name)
Parameters
Type | Name | Description |
---|---|---|
Source | body | The body of the request. |
string | name | The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}" |
Returns
Type | Description |
---|---|
OrganizationsResource.SourcesResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified Source.
Declaration
public virtual OrganizationsResource.SourcesResource.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 |
---|---|
OrganizationsResource.SourcesResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns the permissions that a caller has on the specified source.
Declaration
public virtual OrganizationsResource.SourcesResource.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 |
---|---|
OrganizationsResource.SourcesResource.TestIamPermissionsRequest |