Class ProjectsResource.LocationsResource.BucketsResource.ViewsResource
The "views" collection of methods.
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.LocationsResource.BucketsResource.ViewsResource
Constructors
ViewsResource(IClientService)
Constructs a new resource.
Declaration
public ViewsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Logs
Gets the Logs resource.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.LogsResource Logs { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.LogsResource |
Methods
Create(LogView, string)
Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.CreateRequest Create(LogView body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| LogView | body | The body of the request. |
| string | parent | Required. The bucket in which to create the view
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.CreateRequest |
Delete(string)
Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.DeleteRequest |
Get(string)
Gets a view on a log bucket.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, 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.BucketsResource.ViewsResource.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 (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.GetIamPolicyRequest |
List(string)
Lists views on a log bucket.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.ListRequest |
Patch(LogView, string)
Updates a view on a log bucket. This method replaces the value of the filter field from the existing view with the corresponding value from the new view. If an UNAVAILABLE error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.
Declaration
public virtual ProjectsResource.LocationsResource.BucketsResource.ViewsResource.PatchRequest Patch(LogView body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| LogView | body | The body of the request. |
| string | name | Required. The full resource name of the view to update "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket/views/my-view" |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.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.BucketsResource.ViewsResource.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 (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.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.BucketsResource.ViewsResource.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 (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.BucketsResource.ViewsResource.TestIamPermissionsRequest |