policyanalyzer
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package policyanalyzer provides access to the Policy Analyzer API.
For product documentation, see:https://www.google.com
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/policyanalyzer/v1"...ctx := context.Background()policyanalyzerService, err := policyanalyzer.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
policyanalyzerService, err := policyanalyzer.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)policyanalyzerService, err := policyanalyzer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Context(ctx context.Context) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse, error)
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Filter(filter string) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Header() http.Header
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTag string) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) PageSize(pageSize int64) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) PageToken(pageToken string) *FoldersLocationsActivityTypesActivitiesQueryCall
- func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Pages(ctx context.Context, ...) error
- type FoldersLocationsActivityTypesActivitiesService
- type FoldersLocationsActivityTypesService
- type FoldersLocationsService
- type FoldersService
- type GoogleCloudPolicyanalyzerV1Activity
- type GoogleCloudPolicyanalyzerV1ObservationPeriod
- type GoogleCloudPolicyanalyzerV1QueryActivityResponse
- type OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Context(ctx context.Context) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse, error)
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Filter(filter string) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Header() http.Header
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTag string) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) PageSize(pageSize int64) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) PageToken(pageToken string) *OrganizationsLocationsActivityTypesActivitiesQueryCall
- func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsActivityTypesActivitiesService
- type OrganizationsLocationsActivityTypesService
- type OrganizationsLocationsService
- type OrganizationsService
- type ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Context(ctx context.Context) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse, error)
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Filter(filter string) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Header() http.Header
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) PageSize(pageSize int64) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) PageToken(pageToken string) *ProjectsLocationsActivityTypesActivitiesQueryCall
- func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Pages(ctx context.Context, ...) error
- type ProjectsLocationsActivityTypesActivitiesService
- type ProjectsLocationsActivityTypesService
- type ProjectsLocationsService
- type ProjectsService
- type Service
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeFoldersLocationsActivityTypesActivitiesQueryCall¶added inv0.183.0
type FoldersLocationsActivityTypesActivitiesQueryCall struct {// contains filtered or unexported fields}func (*FoldersLocationsActivityTypesActivitiesQueryCall)Context¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Context(ctxcontext.Context) *FoldersLocationsActivityTypesActivitiesQueryCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)Do¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse,error)
Do executes the "policyanalyzer.folders.locations.activityTypes.activities.query" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudPolicyanalyzerV1QueryActivityResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)Fields¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *FoldersLocationsActivityTypesActivitiesQueryCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)Filter¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Filter(filterstring) *FoldersLocationsActivityTypesActivitiesQueryCall
Filter sets the optional parameter "filter": Filter expression to restrictthe activities returned. For serviceAccountLastAuthentication activities,supported filters are: - `activities.full_resource_name {=} [STRING]` -`activities.fullResourceName {=} [STRING]` where `[STRING]` is the fullresource name of the service account. ForserviceAccountKeyLastAuthentication activities, supported filters are: -`activities.full_resource_name {=} [STRING]` - `activities.fullResourceName{=} [STRING]` where `[STRING]` is the full resource name of the serviceaccount key.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)Header¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)IfNoneMatch¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTagstring) *FoldersLocationsActivityTypesActivitiesQueryCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)PageSize¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) PageSize(pageSizeint64) *FoldersLocationsActivityTypesActivitiesQueryCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Max limit is 1000. Non-positive valuesare ignored. The presence of `nextPageToken` in the response indicates thatmore results might be available.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)PageToken¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) PageToken(pageTokenstring) *FoldersLocationsActivityTypesActivitiesQueryCall
PageToken sets the optional parameter "pageToken": If present, then retrievethe next batch of results from the preceding call to this method.`pageToken` must be the value of `nextPageToken` from the previous response.The values of other method parameters should be identical to those in theprevious call.
func (*FoldersLocationsActivityTypesActivitiesQueryCall)Pages¶added inv0.183.0
func (c *FoldersLocationsActivityTypesActivitiesQueryCall) Pages(ctxcontext.Context, f func(*GoogleCloudPolicyanalyzerV1QueryActivityResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeFoldersLocationsActivityTypesActivitiesService¶added inv0.183.0
type FoldersLocationsActivityTypesActivitiesService struct {// contains filtered or unexported fields}funcNewFoldersLocationsActivityTypesActivitiesService¶added inv0.183.0
func NewFoldersLocationsActivityTypesActivitiesService(s *Service) *FoldersLocationsActivityTypesActivitiesService
func (*FoldersLocationsActivityTypesActivitiesService)Query¶added inv0.183.0
func (r *FoldersLocationsActivityTypesActivitiesService) Query(parentstring) *FoldersLocationsActivityTypesActivitiesQueryCall
Query: Queries policy activities on Google Cloud resources.
- parent: The container resource on which to execute the request. Acceptableformats:`projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations:https://cloud.google.com/about/locations/.
typeFoldersLocationsActivityTypesService¶added inv0.183.0
type FoldersLocationsActivityTypesService struct {Activities *FoldersLocationsActivityTypesActivitiesService// contains filtered or unexported fields}funcNewFoldersLocationsActivityTypesService¶added inv0.183.0
func NewFoldersLocationsActivityTypesService(s *Service) *FoldersLocationsActivityTypesService
typeFoldersLocationsService¶added inv0.183.0
type FoldersLocationsService struct {ActivityTypes *FoldersLocationsActivityTypesService// contains filtered or unexported fields}funcNewFoldersLocationsService¶added inv0.183.0
func NewFoldersLocationsService(s *Service) *FoldersLocationsService
typeFoldersService¶added inv0.183.0
type FoldersService struct {Locations *FoldersLocationsService// contains filtered or unexported fields}funcNewFoldersService¶added inv0.183.0
func NewFoldersService(s *Service) *FoldersService
typeGoogleCloudPolicyanalyzerV1Activity¶
type GoogleCloudPolicyanalyzerV1Activity struct {// Activity: A struct of custom fields to explain the activity.Activitygoogleapi.RawMessage `json:"activity,omitempty"`// ActivityType: The type of the activity.ActivityTypestring `json:"activityType,omitempty"`// FullResourceName: The full resource name that identifies the resource. For// examples of full resource names for Google Cloud services, see//https://cloud.google.com/iam/help/troubleshooter/full-resource-names.FullResourceNamestring `json:"fullResourceName,omitempty"`// ObservationPeriod: The data observation period to build the activity.ObservationPeriod *GoogleCloudPolicyanalyzerV1ObservationPeriod `json:"observationPeriod,omitempty"`// ForceSendFields is a list of field names (e.g. "Activity") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Activity") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudPolicyanalyzerV1Activity: Represents Activity on a GCP resourceover specific observation period.
func (GoogleCloudPolicyanalyzerV1Activity)MarshalJSON¶
func (sGoogleCloudPolicyanalyzerV1Activity) MarshalJSON() ([]byte,error)
typeGoogleCloudPolicyanalyzerV1ObservationPeriod¶
type GoogleCloudPolicyanalyzerV1ObservationPeriod struct {// EndTime: The observation end time. The time in this timestamp is always// `07:00:00Z`.EndTimestring `json:"endTime,omitempty"`// StartTime: The observation start time. The time in this timestamp is always// `07:00:00Z`.StartTimestring `json:"startTime,omitempty"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudPolicyanalyzerV1ObservationPeriod: Represents data observationperiod.
func (GoogleCloudPolicyanalyzerV1ObservationPeriod)MarshalJSON¶
func (sGoogleCloudPolicyanalyzerV1ObservationPeriod) MarshalJSON() ([]byte,error)
typeGoogleCloudPolicyanalyzerV1QueryActivityResponse¶
type GoogleCloudPolicyanalyzerV1QueryActivityResponse struct {// Activities: The set of activities that match the filter included in the// request.Activities []*GoogleCloudPolicyanalyzerV1Activity `json:"activities,omitempty"`// NextPageToken: If there might be more results than those appearing in this// response, then `nextPageToken` is included. To get the next set of results,// call this method again using the value of `nextPageToken` as `pageToken`.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Activities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Activities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudPolicyanalyzerV1QueryActivityResponse: Response to the`QueryActivity` method.
func (GoogleCloudPolicyanalyzerV1QueryActivityResponse)MarshalJSON¶
func (sGoogleCloudPolicyanalyzerV1QueryActivityResponse) MarshalJSON() ([]byte,error)
typeOrganizationsLocationsActivityTypesActivitiesQueryCall¶added inv0.183.0
type OrganizationsLocationsActivityTypesActivitiesQueryCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Context¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Context(ctxcontext.Context) *OrganizationsLocationsActivityTypesActivitiesQueryCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Do¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse,error)
Do executes the "policyanalyzer.organizations.locations.activityTypes.activities.query" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudPolicyanalyzerV1QueryActivityResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Fields¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *OrganizationsLocationsActivityTypesActivitiesQueryCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Filter¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Filter(filterstring) *OrganizationsLocationsActivityTypesActivitiesQueryCall
Filter sets the optional parameter "filter": Filter expression to restrictthe activities returned. For serviceAccountLastAuthentication activities,supported filters are: - `activities.full_resource_name {=} [STRING]` -`activities.fullResourceName {=} [STRING]` where `[STRING]` is the fullresource name of the service account. ForserviceAccountKeyLastAuthentication activities, supported filters are: -`activities.full_resource_name {=} [STRING]` - `activities.fullResourceName{=} [STRING]` where `[STRING]` is the full resource name of the serviceaccount key.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Header¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)IfNoneMatch¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsActivityTypesActivitiesQueryCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)PageSize¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) PageSize(pageSizeint64) *OrganizationsLocationsActivityTypesActivitiesQueryCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Max limit is 1000. Non-positive valuesare ignored. The presence of `nextPageToken` in the response indicates thatmore results might be available.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)PageToken¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) PageToken(pageTokenstring) *OrganizationsLocationsActivityTypesActivitiesQueryCall
PageToken sets the optional parameter "pageToken": If present, then retrievethe next batch of results from the preceding call to this method.`pageToken` must be the value of `nextPageToken` from the previous response.The values of other method parameters should be identical to those in theprevious call.
func (*OrganizationsLocationsActivityTypesActivitiesQueryCall)Pages¶added inv0.183.0
func (c *OrganizationsLocationsActivityTypesActivitiesQueryCall) Pages(ctxcontext.Context, f func(*GoogleCloudPolicyanalyzerV1QueryActivityResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeOrganizationsLocationsActivityTypesActivitiesService¶added inv0.183.0
type OrganizationsLocationsActivityTypesActivitiesService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsActivityTypesActivitiesService¶added inv0.183.0
func NewOrganizationsLocationsActivityTypesActivitiesService(s *Service) *OrganizationsLocationsActivityTypesActivitiesService
func (*OrganizationsLocationsActivityTypesActivitiesService)Query¶added inv0.183.0
func (r *OrganizationsLocationsActivityTypesActivitiesService) Query(parentstring) *OrganizationsLocationsActivityTypesActivitiesQueryCall
Query: Queries policy activities on Google Cloud resources.
- parent: The container resource on which to execute the request. Acceptableformats:`projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations:https://cloud.google.com/about/locations/.
typeOrganizationsLocationsActivityTypesService¶added inv0.183.0
type OrganizationsLocationsActivityTypesService struct {Activities *OrganizationsLocationsActivityTypesActivitiesService// contains filtered or unexported fields}funcNewOrganizationsLocationsActivityTypesService¶added inv0.183.0
func NewOrganizationsLocationsActivityTypesService(s *Service) *OrganizationsLocationsActivityTypesService
typeOrganizationsLocationsService¶added inv0.183.0
type OrganizationsLocationsService struct {ActivityTypes *OrganizationsLocationsActivityTypesService// contains filtered or unexported fields}funcNewOrganizationsLocationsService¶added inv0.183.0
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
typeOrganizationsService¶added inv0.183.0
type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}funcNewOrganizationsService¶added inv0.183.0
func NewOrganizationsService(s *Service) *OrganizationsService
typeProjectsLocationsActivityTypesActivitiesQueryCall¶
type ProjectsLocationsActivityTypesActivitiesQueryCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Context¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Context(ctxcontext.Context) *ProjectsLocationsActivityTypesActivitiesQueryCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Do¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudPolicyanalyzerV1QueryActivityResponse,error)
Do executes the "policyanalyzer.projects.locations.activityTypes.activities.query" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudPolicyanalyzerV1QueryActivityResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Fields¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsActivityTypesActivitiesQueryCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Filter¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Filter(filterstring) *ProjectsLocationsActivityTypesActivitiesQueryCall
Filter sets the optional parameter "filter": Filter expression to restrictthe activities returned. For serviceAccountLastAuthentication activities,supported filters are: - `activities.full_resource_name {=} [STRING]` -`activities.fullResourceName {=} [STRING]` where `[STRING]` is the fullresource name of the service account. ForserviceAccountKeyLastAuthentication activities, supported filters are: -`activities.full_resource_name {=} [STRING]` - `activities.fullResourceName{=} [STRING]` where `[STRING]` is the full resource name of the serviceaccount key.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Header¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)IfNoneMatch¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) IfNoneMatch(entityTagstring) *ProjectsLocationsActivityTypesActivitiesQueryCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)PageSize¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) PageSize(pageSizeint64) *ProjectsLocationsActivityTypesActivitiesQueryCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return from this request. Max limit is 1000. Non-positive valuesare ignored. The presence of `nextPageToken` in the response indicates thatmore results might be available.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)PageToken¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) PageToken(pageTokenstring) *ProjectsLocationsActivityTypesActivitiesQueryCall
PageToken sets the optional parameter "pageToken": If present, then retrievethe next batch of results from the preceding call to this method.`pageToken` must be the value of `nextPageToken` from the previous response.The values of other method parameters should be identical to those in theprevious call.
func (*ProjectsLocationsActivityTypesActivitiesQueryCall)Pages¶
func (c *ProjectsLocationsActivityTypesActivitiesQueryCall) Pages(ctxcontext.Context, f func(*GoogleCloudPolicyanalyzerV1QueryActivityResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsLocationsActivityTypesActivitiesService¶
type ProjectsLocationsActivityTypesActivitiesService struct {// contains filtered or unexported fields}funcNewProjectsLocationsActivityTypesActivitiesService¶
func NewProjectsLocationsActivityTypesActivitiesService(s *Service) *ProjectsLocationsActivityTypesActivitiesService
func (*ProjectsLocationsActivityTypesActivitiesService)Query¶
func (r *ProjectsLocationsActivityTypesActivitiesService) Query(parentstring) *ProjectsLocationsActivityTypesActivitiesQueryCall
Query: Queries policy activities on Google Cloud resources.
- parent: The container resource on which to execute the request. Acceptableformats:`projects/[PROJECT_ID|PROJECT_NUMBER]/locations/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google Cloud Locations:https://cloud.google.com/about/locations/.
typeProjectsLocationsActivityTypesService¶
type ProjectsLocationsActivityTypesService struct {Activities *ProjectsLocationsActivityTypesActivitiesService// contains filtered or unexported fields}funcNewProjectsLocationsActivityTypesService¶
func NewProjectsLocationsActivityTypesService(s *Service) *ProjectsLocationsActivityTypesService
typeProjectsLocationsService¶
type ProjectsLocationsService struct {ActivityTypes *ProjectsLocationsActivityTypesService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentFolders *FoldersServiceOrganizations *OrganizationsServiceProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.