Documentation ¶
Overview ¶
Package accessapproval provides access to the Access Approval API.
For product documentation, see: https://cloud.google.com/access-approval/docs
Creating a client ¶
Usage example:
import "google.golang.org/api/accessapproval/v1" ... ctx := context.Background() accessapprovalService, err := accessapproval.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
accessapprovalService, err := accessapproval.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) accessapprovalService, err := accessapproval.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AccessApprovalSettings
- type AccessLocations
- type AccessReason
- type ApprovalRequest
- type ApproveApprovalRequestMessage
- type ApproveDecision
- type DismissApprovalRequestMessage
- type DismissDecision
- type Empty
- type EnrolledService
- type FoldersApprovalRequestsApproveCall
- func (c *FoldersApprovalRequestsApproveCall) Context(ctx context.Context) *FoldersApprovalRequestsApproveCall
- func (c *FoldersApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *FoldersApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsApproveCall
- func (c *FoldersApprovalRequestsApproveCall) Header() http.Header
- type FoldersApprovalRequestsDismissCall
- func (c *FoldersApprovalRequestsDismissCall) Context(ctx context.Context) *FoldersApprovalRequestsDismissCall
- func (c *FoldersApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *FoldersApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsDismissCall
- func (c *FoldersApprovalRequestsDismissCall) Header() http.Header
- type FoldersApprovalRequestsGetCall
- func (c *FoldersApprovalRequestsGetCall) Context(ctx context.Context) *FoldersApprovalRequestsGetCall
- func (c *FoldersApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *FoldersApprovalRequestsGetCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsGetCall
- func (c *FoldersApprovalRequestsGetCall) Header() http.Header
- func (c *FoldersApprovalRequestsGetCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsGetCall
- type FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) Context(ctx context.Context) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
- func (c *FoldersApprovalRequestsListCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) Filter(filter string) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) Header() http.Header
- func (c *FoldersApprovalRequestsListCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) PageSize(pageSize int64) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) PageToken(pageToken string) *FoldersApprovalRequestsListCall
- func (c *FoldersApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error
- type FoldersApprovalRequestsService
- func (r *FoldersApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *FoldersApprovalRequestsApproveCall
- func (r *FoldersApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *FoldersApprovalRequestsDismissCall
- func (r *FoldersApprovalRequestsService) Get(name string) *FoldersApprovalRequestsGetCall
- func (r *FoldersApprovalRequestsService) List(parent string) *FoldersApprovalRequestsListCall
- type FoldersDeleteAccessApprovalSettingsCall
- func (c *FoldersDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersDeleteAccessApprovalSettingsCall
- func (c *FoldersDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *FoldersDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersDeleteAccessApprovalSettingsCall
- func (c *FoldersDeleteAccessApprovalSettingsCall) Header() http.Header
- type FoldersGetAccessApprovalSettingsCall
- func (c *FoldersGetAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersGetAccessApprovalSettingsCall
- func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *FoldersGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersGetAccessApprovalSettingsCall
- func (c *FoldersGetAccessApprovalSettingsCall) Header() http.Header
- func (c *FoldersGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *FoldersGetAccessApprovalSettingsCall
- type FoldersService
- func (r *FoldersService) DeleteAccessApprovalSettings(name string) *FoldersDeleteAccessApprovalSettingsCall
- func (r *FoldersService) GetAccessApprovalSettings(name string) *FoldersGetAccessApprovalSettingsCall
- func (r *FoldersService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *FoldersUpdateAccessApprovalSettingsCall
- type FoldersUpdateAccessApprovalSettingsCall
- func (c *FoldersUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersUpdateAccessApprovalSettingsCall
- func (c *FoldersUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *FoldersUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersUpdateAccessApprovalSettingsCall
- func (c *FoldersUpdateAccessApprovalSettingsCall) Header() http.Header
- func (c *FoldersUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *FoldersUpdateAccessApprovalSettingsCall
- type ListApprovalRequestsResponse
- type OrganizationsApprovalRequestsApproveCall
- func (c *OrganizationsApprovalRequestsApproveCall) Context(ctx context.Context) *OrganizationsApprovalRequestsApproveCall
- func (c *OrganizationsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *OrganizationsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsApproveCall
- func (c *OrganizationsApprovalRequestsApproveCall) Header() http.Header
- type OrganizationsApprovalRequestsDismissCall
- func (c *OrganizationsApprovalRequestsDismissCall) Context(ctx context.Context) *OrganizationsApprovalRequestsDismissCall
- func (c *OrganizationsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *OrganizationsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsDismissCall
- func (c *OrganizationsApprovalRequestsDismissCall) Header() http.Header
- type OrganizationsApprovalRequestsGetCall
- func (c *OrganizationsApprovalRequestsGetCall) Context(ctx context.Context) *OrganizationsApprovalRequestsGetCall
- func (c *OrganizationsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *OrganizationsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsGetCall
- func (c *OrganizationsApprovalRequestsGetCall) Header() http.Header
- func (c *OrganizationsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsGetCall
- type OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) Context(ctx context.Context) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
- func (c *OrganizationsApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) Filter(filter string) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) Header() http.Header
- func (c *OrganizationsApprovalRequestsListCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) PageSize(pageSize int64) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) PageToken(pageToken string) *OrganizationsApprovalRequestsListCall
- func (c *OrganizationsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error
- type OrganizationsApprovalRequestsService
- func (r *OrganizationsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *OrganizationsApprovalRequestsApproveCall
- func (r *OrganizationsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *OrganizationsApprovalRequestsDismissCall
- func (r *OrganizationsApprovalRequestsService) Get(name string) *OrganizationsApprovalRequestsGetCall
- func (r *OrganizationsApprovalRequestsService) List(parent string) *OrganizationsApprovalRequestsListCall
- type OrganizationsDeleteAccessApprovalSettingsCall
- func (c *OrganizationsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsDeleteAccessApprovalSettingsCall
- func (c *OrganizationsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsDeleteAccessApprovalSettingsCall
- func (c *OrganizationsDeleteAccessApprovalSettingsCall) Header() http.Header
- type OrganizationsGetAccessApprovalSettingsCall
- func (c *OrganizationsGetAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsGetAccessApprovalSettingsCall
- func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *OrganizationsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetAccessApprovalSettingsCall
- func (c *OrganizationsGetAccessApprovalSettingsCall) Header() http.Header
- func (c *OrganizationsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetAccessApprovalSettingsCall
- type OrganizationsService
- func (r *OrganizationsService) DeleteAccessApprovalSettings(name string) *OrganizationsDeleteAccessApprovalSettingsCall
- func (r *OrganizationsService) GetAccessApprovalSettings(name string) *OrganizationsGetAccessApprovalSettingsCall
- func (r *OrganizationsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *OrganizationsUpdateAccessApprovalSettingsCall
- type OrganizationsUpdateAccessApprovalSettingsCall
- func (c *OrganizationsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsUpdateAccessApprovalSettingsCall
- func (c *OrganizationsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *OrganizationsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateAccessApprovalSettingsCall
- func (c *OrganizationsUpdateAccessApprovalSettingsCall) Header() http.Header
- func (c *OrganizationsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateAccessApprovalSettingsCall
- type ProjectsApprovalRequestsApproveCall
- func (c *ProjectsApprovalRequestsApproveCall) Context(ctx context.Context) *ProjectsApprovalRequestsApproveCall
- func (c *ProjectsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *ProjectsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsApproveCall
- func (c *ProjectsApprovalRequestsApproveCall) Header() http.Header
- type ProjectsApprovalRequestsDismissCall
- func (c *ProjectsApprovalRequestsDismissCall) Context(ctx context.Context) *ProjectsApprovalRequestsDismissCall
- func (c *ProjectsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *ProjectsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsDismissCall
- func (c *ProjectsApprovalRequestsDismissCall) Header() http.Header
- type ProjectsApprovalRequestsGetCall
- func (c *ProjectsApprovalRequestsGetCall) Context(ctx context.Context) *ProjectsApprovalRequestsGetCall
- func (c *ProjectsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
- func (c *ProjectsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsGetCall
- func (c *ProjectsApprovalRequestsGetCall) Header() http.Header
- func (c *ProjectsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsGetCall
- type ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) Context(ctx context.Context) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
- func (c *ProjectsApprovalRequestsListCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) Filter(filter string) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) Header() http.Header
- func (c *ProjectsApprovalRequestsListCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) PageSize(pageSize int64) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) PageToken(pageToken string) *ProjectsApprovalRequestsListCall
- func (c *ProjectsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) error) error
- type ProjectsApprovalRequestsService
- func (r *ProjectsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *ProjectsApprovalRequestsApproveCall
- func (r *ProjectsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *ProjectsApprovalRequestsDismissCall
- func (r *ProjectsApprovalRequestsService) Get(name string) *ProjectsApprovalRequestsGetCall
- func (r *ProjectsApprovalRequestsService) List(parent string) *ProjectsApprovalRequestsListCall
- type ProjectsDeleteAccessApprovalSettingsCall
- func (c *ProjectsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsDeleteAccessApprovalSettingsCall
- func (c *ProjectsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsDeleteAccessApprovalSettingsCall
- func (c *ProjectsDeleteAccessApprovalSettingsCall) Header() http.Header
- type ProjectsGetAccessApprovalSettingsCall
- func (c *ProjectsGetAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsGetAccessApprovalSettingsCall
- func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *ProjectsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsGetAccessApprovalSettingsCall
- func (c *ProjectsGetAccessApprovalSettingsCall) Header() http.Header
- func (c *ProjectsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *ProjectsGetAccessApprovalSettingsCall
- type ProjectsService
- func (r *ProjectsService) DeleteAccessApprovalSettings(name string) *ProjectsDeleteAccessApprovalSettingsCall
- func (r *ProjectsService) GetAccessApprovalSettings(name string) *ProjectsGetAccessApprovalSettingsCall
- func (r *ProjectsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *ProjectsUpdateAccessApprovalSettingsCall
- type ProjectsUpdateAccessApprovalSettingsCall
- func (c *ProjectsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsUpdateAccessApprovalSettingsCall
- func (c *ProjectsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
- func (c *ProjectsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsUpdateAccessApprovalSettingsCall
- func (c *ProjectsUpdateAccessApprovalSettingsCall) Header() http.Header
- func (c *ProjectsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *ProjectsUpdateAccessApprovalSettingsCall
- type ResourceProperties
- type Service
Constants ¶
const (
// View and manage your data across Google Cloud Platform services
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 ¶
type AccessApprovalSettings ¶
type AccessApprovalSettings struct { // EnrolledAncestor: Output only. This field is read only (not settable // via UpdateAccessAccessApprovalSettings method). If the field is true, // that indicates that at least one service is enrolled for Access // Approval in one or more ancestors of the Project or Folder (this // field will always be unset for the organization since organizations // do not have ancestors). EnrolledAncestor bool `json:"enrolledAncestor,omitempty"` // EnrolledServices: A list of Google Cloud Services for which the given // resource has Access Approval enrolled. Access requests for the // resource given by name against any of these services contained here // will be required to have explicit approval. If name refers to an // organization, enrollment can be done for individual services. If name // refers to a folder or project, enrollment can only be done on an all // or nothing basis. If a cloud_product is repeated in this list, the // first entry will be honored and all following entries will be // discarded. A maximum of 10 enrolled services will be enforced, to be // expanded as the set of supported services is expanded. EnrolledServices []*EnrolledService `json:"enrolledServices,omitempty"` // Name: The resource name of the settings. Format is one of: * // "projects/{project}/accessApprovalSettings" * // "folders/{folder}/accessApprovalSettings" * // "organizations/{organization}/accessApprovalSettings" Name string `json:"name,omitempty"` // NotificationEmails: A list of email addresses to which notifications // relating to approval requests should be sent. Notifications relating // to a resource will be sent to all emails in the settings of ancestor // resources of that resource. A maximum of 50 email addresses are // allowed. NotificationEmails []string `json:"notificationEmails,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "EnrolledAncestor") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EnrolledAncestor") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AccessApprovalSettings: Settings on a Project/Folder/Organization related to Access Approval.
func (*AccessApprovalSettings) MarshalJSON ¶
func (s *AccessApprovalSettings) MarshalJSON() ([]byte, error)
type AccessLocations ¶
type AccessLocations struct { // PrincipalOfficeCountry: The "home office" location of the principal. // A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or // "GB" or a region code. In some limited situations Google systems may // refer refer to a region code instead of a country code. Possible // Region Codes: * ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa // * NAM: North America * SAM: South America * ANT: Antarctica * ANY: // Any location PrincipalOfficeCountry string `json:"principalOfficeCountry,omitempty"` // PrincipalPhysicalLocationCountry: Physical location of the principal // at the time of the access. A two-letter country code (ISO 3166-1 // alpha-2), such as "US", "DE" or "GB" or a region code. In some // limited situations Google systems may refer refer to a region code // instead of a country code. Possible Region Codes: * ASI: Asia * EUR: // Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South // America * ANT: Antarctica * ANY: Any location PrincipalPhysicalLocationCountry string `json:"principalPhysicalLocationCountry,omitempty"` // ForceSendFields is a list of field names (e.g. // "PrincipalOfficeCountry") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PrincipalOfficeCountry") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AccessLocations: Home office and physical location of the principal.
func (*AccessLocations) MarshalJSON ¶
func (s *AccessLocations) MarshalJSON() ([]byte, error)
type AccessReason ¶
type AccessReason struct { // Detail: More detail about certain reason types. See comments for each // type above. Detail string `json:"detail,omitempty"` // Type: Type of access justification. // // Possible values: // "TYPE_UNSPECIFIED" - Default value for proto, shouldn't be used. // "CUSTOMER_INITIATED_SUPPORT" - Customer made a request or raised an // issue that required the principal to access customer data. `detail` // is of the form ("#####" is the issue ID): * "Feedback Report: #####" // * "Case Number: #####" * "Case ID: #####" * "E-PIN Reference: #####" // * "Google-#####" * "T-#####" // "GOOGLE_INITIATED_SERVICE" - The principal accessed customer data // in order to diagnose or resolve a suspected issue in services or a // known outage. Often this access is used to confirm that customers are // not affected by a suspected service issue or to remediate a // reversible system issue. // "GOOGLE_INITIATED_REVIEW" - Google initiated service for security, // fraud, abuse, or compliance purposes. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Detail") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccessReason) MarshalJSON ¶
func (s *AccessReason) MarshalJSON() ([]byte, error)
type ApprovalRequest ¶
type ApprovalRequest struct { // Approve: Access was approved. Approve *ApproveDecision `json:"approve,omitempty"` // Dismiss: The request was dismissed. Dismiss *DismissDecision `json:"dismiss,omitempty"` // Name: The resource name of the request. Format is // "{projects|folders|organizations}/{id}/approvalRequests/{approval_requ // est}". Name string `json:"name,omitempty"` // RequestTime: The time at which approval was requested. RequestTime string `json:"requestTime,omitempty"` // RequestedExpiration: The requested expiration for the approval. If // the request is approved, access will be granted from the time of // approval until the expiration time. RequestedExpiration string `json:"requestedExpiration,omitempty"` // RequestedLocations: The locations for which approval is being // requested. RequestedLocations *AccessLocations `json:"requestedLocations,omitempty"` // RequestedReason: The justification for which approval is being // requested. RequestedReason *AccessReason `json:"requestedReason,omitempty"` // RequestedResourceName: The resource for which approval is being // requested. The format of the resource name is defined at // https://cloud.google.com/apis/design/resource_names. The resource // name here may either be a "full" resource name (e.g. // "//library.googleapis.com/shelves/shelf1/books/book2") or a // "relative" resource name (e.g. "shelves/shelf1/books/book2") as // described in the resource name specification. RequestedResourceName string `json:"requestedResourceName,omitempty"` // RequestedResourceProperties: Properties related to the resource // represented by requested_resource_name. RequestedResourceProperties *ResourceProperties `json:"requestedResourceProperties,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Approve") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Approve") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ApprovalRequest: A request for the customer to approve access to a resource.
func (*ApprovalRequest) MarshalJSON ¶
func (s *ApprovalRequest) MarshalJSON() ([]byte, error)
type ApproveApprovalRequestMessage ¶
type ApproveApprovalRequestMessage struct { // ExpireTime: The expiration time of this approval. ExpireTime string `json:"expireTime,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpireTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExpireTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ApproveApprovalRequestMessage: Request to approve an ApprovalRequest.
func (*ApproveApprovalRequestMessage) MarshalJSON ¶
func (s *ApproveApprovalRequestMessage) MarshalJSON() ([]byte, error)
type ApproveDecision ¶
type ApproveDecision struct { // ApproveTime: The time at which approval was granted. ApproveTime string `json:"approveTime,omitempty"` // ExpireTime: The time at which the approval expires. ExpireTime string `json:"expireTime,omitempty"` // ForceSendFields is a list of field names (e.g. "ApproveTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApproveTime") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ApproveDecision: A decision that has been made to approve access to a resource.
func (*ApproveDecision) MarshalJSON ¶
func (s *ApproveDecision) MarshalJSON() ([]byte, error)
type DismissApprovalRequestMessage ¶
type DismissApprovalRequestMessage struct { }
DismissApprovalRequestMessage: Request to dismiss an approval request.
type DismissDecision ¶
type DismissDecision struct { // DismissTime: The time at which the approval request was dismissed. DismissTime string `json:"dismissTime,omitempty"` // Implicit: This field will be true if the ApprovalRequest was // implcitly dismissed due to inaction by the access approval approvers // (the request is not acted on by the approvers before the exiration // time). Implicit bool `json:"implicit,omitempty"` // ForceSendFields is a list of field names (e.g. "DismissTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DismissTime") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DismissDecision: A decision that has been made to dismiss an approval request.
func (*DismissDecision) MarshalJSON ¶
func (s *DismissDecision) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type EnrolledService ¶
type EnrolledService struct { // CloudProduct: The product for which Access Approval will be enrolled. // Allowed values are listed below (case-sensitive): * all * App Engine // * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute // Engine * Cloud Dataflow * Cloud Identity and Access Management * // Cloud Pub/Sub * Cloud Storage * Persistent Disk Note: These values // are supported as input for legacy purposes, but will not be returned // from the API. * all * appengine.googleapis.com * // bigquery.googleapis.com * bigtable.googleapis.com * // cloudkms.googleapis.com * compute.googleapis.com * // dataflow.googleapis.com * iam.googleapis.com * pubsub.googleapis.com // * storage.googleapis.com Calls to UpdateAccessApprovalSettings using // 'all' or any of the XXX.googleapis.com will be translated to the // associated product name ('all', 'App Engine', etc.). Note: 'all' will // enroll the resource in all products supported at both 'GA' and // 'Preview' levels. More information about levels of support is // available at // https://cloud.google.com/access-approval/docs/supported-services CloudProduct string `json:"cloudProduct,omitempty"` // EnrollmentLevel: The enrollment level of the service. // // Possible values: // "ENROLLMENT_LEVEL_UNSPECIFIED" - Default value for proto, shouldn't // be used. // "BLOCK_ALL" - Service is enrolled in Access Approval for all // requests EnrollmentLevel string `json:"enrollmentLevel,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudProduct") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CloudProduct") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EnrolledService: Represents the enrollment of a cloud resource into a specific service.
func (*EnrolledService) MarshalJSON ¶
func (s *EnrolledService) MarshalJSON() ([]byte, error)
type FoldersApprovalRequestsApproveCall ¶
type FoldersApprovalRequestsApproveCall struct {
// contains filtered or unexported fields
}
func (*FoldersApprovalRequestsApproveCall) Context ¶
func (c *FoldersApprovalRequestsApproveCall) Context(ctx context.Context) *FoldersApprovalRequestsApproveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersApprovalRequestsApproveCall) Do ¶
func (c *FoldersApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.folders.approvalRequests.approve" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersApprovalRequestsApproveCall) Fields ¶
func (c *FoldersApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsApproveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersApprovalRequestsApproveCall) Header ¶
func (c *FoldersApprovalRequestsApproveCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FoldersApprovalRequestsDismissCall ¶
type FoldersApprovalRequestsDismissCall struct {
// contains filtered or unexported fields
}
func (*FoldersApprovalRequestsDismissCall) Context ¶
func (c *FoldersApprovalRequestsDismissCall) Context(ctx context.Context) *FoldersApprovalRequestsDismissCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersApprovalRequestsDismissCall) Do ¶
func (c *FoldersApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.folders.approvalRequests.dismiss" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersApprovalRequestsDismissCall) Fields ¶
func (c *FoldersApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsDismissCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersApprovalRequestsDismissCall) Header ¶
func (c *FoldersApprovalRequestsDismissCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FoldersApprovalRequestsGetCall ¶
type FoldersApprovalRequestsGetCall struct {
// contains filtered or unexported fields
}
func (*FoldersApprovalRequestsGetCall) Context ¶
func (c *FoldersApprovalRequestsGetCall) Context(ctx context.Context) *FoldersApprovalRequestsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersApprovalRequestsGetCall) Do ¶
func (c *FoldersApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.folders.approvalRequests.get" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersApprovalRequestsGetCall) Fields ¶
func (c *FoldersApprovalRequestsGetCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersApprovalRequestsGetCall) Header ¶
func (c *FoldersApprovalRequestsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FoldersApprovalRequestsGetCall) IfNoneMatch ¶
func (c *FoldersApprovalRequestsGetCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type FoldersApprovalRequestsListCall ¶
type FoldersApprovalRequestsListCall struct {
// contains filtered or unexported fields
}
func (*FoldersApprovalRequestsListCall) Context ¶
func (c *FoldersApprovalRequestsListCall) Context(ctx context.Context) *FoldersApprovalRequestsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersApprovalRequestsListCall) Do ¶
func (c *FoldersApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
Do executes the "accessapproval.folders.approvalRequests.list" call. Exactly one of *ListApprovalRequestsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersApprovalRequestsListCall) Fields ¶
func (c *FoldersApprovalRequestsListCall) Fields(s ...googleapi.Field) *FoldersApprovalRequestsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersApprovalRequestsListCall) Filter ¶
func (c *FoldersApprovalRequestsListCall) Filter(filter string) *FoldersApprovalRequestsListCall
Filter sets the optional parameter "filter": A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
func (*FoldersApprovalRequestsListCall) Header ¶
func (c *FoldersApprovalRequestsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FoldersApprovalRequestsListCall) IfNoneMatch ¶
func (c *FoldersApprovalRequestsListCall) IfNoneMatch(entityTag string) *FoldersApprovalRequestsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*FoldersApprovalRequestsListCall) PageSize ¶
func (c *FoldersApprovalRequestsListCall) PageSize(pageSize int64) *FoldersApprovalRequestsListCall
PageSize sets the optional parameter "pageSize": Requested page size.
func (*FoldersApprovalRequestsListCall) PageToken ¶
func (c *FoldersApprovalRequestsListCall) PageToken(pageToken string) *FoldersApprovalRequestsListCall
PageToken sets the optional parameter "pageToken": A token identifying the page of results to return.
func (*FoldersApprovalRequestsListCall) Pages ¶
func (c *FoldersApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) 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.
type FoldersApprovalRequestsService ¶
type FoldersApprovalRequestsService struct {
// contains filtered or unexported fields
}
func NewFoldersApprovalRequestsService ¶
func NewFoldersApprovalRequestsService(s *Service) *FoldersApprovalRequestsService
func (*FoldersApprovalRequestsService) Approve ¶
func (r *FoldersApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *FoldersApprovalRequestsApproveCall
Approve: Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*FoldersApprovalRequestsService) Dismiss ¶
func (r *FoldersApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *FoldersApprovalRequestsDismissCall
Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*FoldersApprovalRequestsService) Get ¶
func (r *FoldersApprovalRequestsService) Get(name string) *FoldersApprovalRequestsGetCall
Get: Gets an approval request. Returns NOT_FOUND if the request does not exist.
func (*FoldersApprovalRequestsService) List ¶
func (r *FoldersApprovalRequestsService) List(parent string) *FoldersApprovalRequestsListCall
List: Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
type FoldersDeleteAccessApprovalSettingsCall ¶
type FoldersDeleteAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*FoldersDeleteAccessApprovalSettingsCall) Context ¶
func (c *FoldersDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersDeleteAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersDeleteAccessApprovalSettingsCall) Do ¶
func (c *FoldersDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "accessapproval.folders.deleteAccessApprovalSettings" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersDeleteAccessApprovalSettingsCall) Fields ¶
func (c *FoldersDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersDeleteAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersDeleteAccessApprovalSettingsCall) Header ¶
func (c *FoldersDeleteAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type FoldersGetAccessApprovalSettingsCall ¶
type FoldersGetAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*FoldersGetAccessApprovalSettingsCall) Context ¶
func (c *FoldersGetAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersGetAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersGetAccessApprovalSettingsCall) Do ¶
func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.folders.getAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersGetAccessApprovalSettingsCall) Fields ¶
func (c *FoldersGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersGetAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersGetAccessApprovalSettingsCall) Header ¶
func (c *FoldersGetAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FoldersGetAccessApprovalSettingsCall) IfNoneMatch ¶
func (c *FoldersGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *FoldersGetAccessApprovalSettingsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type FoldersService ¶
type FoldersService struct { ApprovalRequests *FoldersApprovalRequestsService // contains filtered or unexported fields }
func NewFoldersService ¶
func NewFoldersService(s *Service) *FoldersService
func (*FoldersService) DeleteAccessApprovalSettings ¶
func (r *FoldersService) DeleteAccessApprovalSettings(name string) *FoldersDeleteAccessApprovalSettingsCall
DeleteAccessApprovalSettings: Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
func (*FoldersService) GetAccessApprovalSettings ¶
func (r *FoldersService) GetAccessApprovalSettings(name string) *FoldersGetAccessApprovalSettingsCall
GetAccessApprovalSettings: Gets the settings associated with a project, folder, or organization.
func (*FoldersService) UpdateAccessApprovalSettings ¶
func (r *FoldersService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *FoldersUpdateAccessApprovalSettingsCall
UpdateAccessApprovalSettings: Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
type FoldersUpdateAccessApprovalSettingsCall ¶
type FoldersUpdateAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*FoldersUpdateAccessApprovalSettingsCall) Context ¶
func (c *FoldersUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *FoldersUpdateAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*FoldersUpdateAccessApprovalSettingsCall) Do ¶
func (c *FoldersUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.folders.updateAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*FoldersUpdateAccessApprovalSettingsCall) Fields ¶
func (c *FoldersUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *FoldersUpdateAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*FoldersUpdateAccessApprovalSettingsCall) Header ¶
func (c *FoldersUpdateAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*FoldersUpdateAccessApprovalSettingsCall) UpdateMask ¶
func (c *FoldersUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *FoldersUpdateAccessApprovalSettingsCall
UpdateMask sets the optional parameter "updateMask": The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
type ListApprovalRequestsResponse ¶
type ListApprovalRequestsResponse struct { // ApprovalRequests: Approval request details. ApprovalRequests []*ApprovalRequest `json:"approvalRequests,omitempty"` // NextPageToken: Token to retrieve the next page of results, or empty // if there are no more. NextPageToken string `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. "ApprovalRequests") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApprovalRequests") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListApprovalRequestsResponse: Response to listing of ApprovalRequest objects.
func (*ListApprovalRequestsResponse) MarshalJSON ¶
func (s *ListApprovalRequestsResponse) MarshalJSON() ([]byte, error)
type OrganizationsApprovalRequestsApproveCall ¶
type OrganizationsApprovalRequestsApproveCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsApprovalRequestsApproveCall) Context ¶
func (c *OrganizationsApprovalRequestsApproveCall) Context(ctx context.Context) *OrganizationsApprovalRequestsApproveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsApprovalRequestsApproveCall) Do ¶
func (c *OrganizationsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.organizations.approvalRequests.approve" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsApprovalRequestsApproveCall) Fields ¶
func (c *OrganizationsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsApproveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsApprovalRequestsApproveCall) Header ¶
func (c *OrganizationsApprovalRequestsApproveCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrganizationsApprovalRequestsDismissCall ¶
type OrganizationsApprovalRequestsDismissCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsApprovalRequestsDismissCall) Context ¶
func (c *OrganizationsApprovalRequestsDismissCall) Context(ctx context.Context) *OrganizationsApprovalRequestsDismissCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsApprovalRequestsDismissCall) Do ¶
func (c *OrganizationsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.organizations.approvalRequests.dismiss" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsApprovalRequestsDismissCall) Fields ¶
func (c *OrganizationsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsDismissCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsApprovalRequestsDismissCall) Header ¶
func (c *OrganizationsApprovalRequestsDismissCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrganizationsApprovalRequestsGetCall ¶
type OrganizationsApprovalRequestsGetCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsApprovalRequestsGetCall) Context ¶
func (c *OrganizationsApprovalRequestsGetCall) Context(ctx context.Context) *OrganizationsApprovalRequestsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsApprovalRequestsGetCall) Do ¶
func (c *OrganizationsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.organizations.approvalRequests.get" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsApprovalRequestsGetCall) Fields ¶
func (c *OrganizationsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsApprovalRequestsGetCall) Header ¶
func (c *OrganizationsApprovalRequestsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationsApprovalRequestsGetCall) IfNoneMatch ¶
func (c *OrganizationsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrganizationsApprovalRequestsListCall ¶
type OrganizationsApprovalRequestsListCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsApprovalRequestsListCall) Context ¶
func (c *OrganizationsApprovalRequestsListCall) Context(ctx context.Context) *OrganizationsApprovalRequestsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsApprovalRequestsListCall) Do ¶
func (c *OrganizationsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
Do executes the "accessapproval.organizations.approvalRequests.list" call. Exactly one of *ListApprovalRequestsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsApprovalRequestsListCall) Fields ¶
func (c *OrganizationsApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsApprovalRequestsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsApprovalRequestsListCall) Filter ¶
func (c *OrganizationsApprovalRequestsListCall) Filter(filter string) *OrganizationsApprovalRequestsListCall
Filter sets the optional parameter "filter": A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
func (*OrganizationsApprovalRequestsListCall) Header ¶
func (c *OrganizationsApprovalRequestsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationsApprovalRequestsListCall) IfNoneMatch ¶
func (c *OrganizationsApprovalRequestsListCall) IfNoneMatch(entityTag string) *OrganizationsApprovalRequestsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrganizationsApprovalRequestsListCall) PageSize ¶
func (c *OrganizationsApprovalRequestsListCall) PageSize(pageSize int64) *OrganizationsApprovalRequestsListCall
PageSize sets the optional parameter "pageSize": Requested page size.
func (*OrganizationsApprovalRequestsListCall) PageToken ¶
func (c *OrganizationsApprovalRequestsListCall) PageToken(pageToken string) *OrganizationsApprovalRequestsListCall
PageToken sets the optional parameter "pageToken": A token identifying the page of results to return.
func (*OrganizationsApprovalRequestsListCall) Pages ¶
func (c *OrganizationsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) 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.
type OrganizationsApprovalRequestsService ¶
type OrganizationsApprovalRequestsService struct {
// contains filtered or unexported fields
}
func NewOrganizationsApprovalRequestsService ¶
func NewOrganizationsApprovalRequestsService(s *Service) *OrganizationsApprovalRequestsService
func (*OrganizationsApprovalRequestsService) Approve ¶
func (r *OrganizationsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *OrganizationsApprovalRequestsApproveCall
Approve: Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*OrganizationsApprovalRequestsService) Dismiss ¶
func (r *OrganizationsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *OrganizationsApprovalRequestsDismissCall
Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*OrganizationsApprovalRequestsService) Get ¶
func (r *OrganizationsApprovalRequestsService) Get(name string) *OrganizationsApprovalRequestsGetCall
Get: Gets an approval request. Returns NOT_FOUND if the request does not exist.
func (*OrganizationsApprovalRequestsService) List ¶
func (r *OrganizationsApprovalRequestsService) List(parent string) *OrganizationsApprovalRequestsListCall
List: Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
type OrganizationsDeleteAccessApprovalSettingsCall ¶
type OrganizationsDeleteAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsDeleteAccessApprovalSettingsCall) Context ¶
func (c *OrganizationsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsDeleteAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsDeleteAccessApprovalSettingsCall) Do ¶
func (c *OrganizationsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "accessapproval.organizations.deleteAccessApprovalSettings" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsDeleteAccessApprovalSettingsCall) Fields ¶
func (c *OrganizationsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsDeleteAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsDeleteAccessApprovalSettingsCall) Header ¶
func (c *OrganizationsDeleteAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrganizationsGetAccessApprovalSettingsCall ¶
type OrganizationsGetAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsGetAccessApprovalSettingsCall) Context ¶
func (c *OrganizationsGetAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsGetAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsGetAccessApprovalSettingsCall) Do ¶
func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.organizations.getAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsGetAccessApprovalSettingsCall) Fields ¶
func (c *OrganizationsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsGetAccessApprovalSettingsCall) Header ¶
func (c *OrganizationsGetAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationsGetAccessApprovalSettingsCall) IfNoneMatch ¶
func (c *OrganizationsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetAccessApprovalSettingsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrganizationsService ¶
type OrganizationsService struct { ApprovalRequests *OrganizationsApprovalRequestsService // contains filtered or unexported fields }
func NewOrganizationsService ¶
func NewOrganizationsService(s *Service) *OrganizationsService
func (*OrganizationsService) DeleteAccessApprovalSettings ¶
func (r *OrganizationsService) DeleteAccessApprovalSettings(name string) *OrganizationsDeleteAccessApprovalSettingsCall
DeleteAccessApprovalSettings: Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
func (*OrganizationsService) GetAccessApprovalSettings ¶
func (r *OrganizationsService) GetAccessApprovalSettings(name string) *OrganizationsGetAccessApprovalSettingsCall
GetAccessApprovalSettings: Gets the settings associated with a project, folder, or organization.
func (*OrganizationsService) UpdateAccessApprovalSettings ¶
func (r *OrganizationsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *OrganizationsUpdateAccessApprovalSettingsCall
UpdateAccessApprovalSettings: Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
type OrganizationsUpdateAccessApprovalSettingsCall ¶
type OrganizationsUpdateAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*OrganizationsUpdateAccessApprovalSettingsCall) Context ¶
func (c *OrganizationsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *OrganizationsUpdateAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrganizationsUpdateAccessApprovalSettingsCall) Do ¶
func (c *OrganizationsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.organizations.updateAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsUpdateAccessApprovalSettingsCall) Fields ¶
func (c *OrganizationsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrganizationsUpdateAccessApprovalSettingsCall) Header ¶
func (c *OrganizationsUpdateAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrganizationsUpdateAccessApprovalSettingsCall) UpdateMask ¶
func (c *OrganizationsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateAccessApprovalSettingsCall
UpdateMask sets the optional parameter "updateMask": The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
type ProjectsApprovalRequestsApproveCall ¶
type ProjectsApprovalRequestsApproveCall struct {
// contains filtered or unexported fields
}
func (*ProjectsApprovalRequestsApproveCall) Context ¶
func (c *ProjectsApprovalRequestsApproveCall) Context(ctx context.Context) *ProjectsApprovalRequestsApproveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsApprovalRequestsApproveCall) Do ¶
func (c *ProjectsApprovalRequestsApproveCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.projects.approvalRequests.approve" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsApprovalRequestsApproveCall) Fields ¶
func (c *ProjectsApprovalRequestsApproveCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsApproveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsApprovalRequestsApproveCall) Header ¶
func (c *ProjectsApprovalRequestsApproveCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsApprovalRequestsDismissCall ¶
type ProjectsApprovalRequestsDismissCall struct {
// contains filtered or unexported fields
}
func (*ProjectsApprovalRequestsDismissCall) Context ¶
func (c *ProjectsApprovalRequestsDismissCall) Context(ctx context.Context) *ProjectsApprovalRequestsDismissCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsApprovalRequestsDismissCall) Do ¶
func (c *ProjectsApprovalRequestsDismissCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.projects.approvalRequests.dismiss" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsApprovalRequestsDismissCall) Fields ¶
func (c *ProjectsApprovalRequestsDismissCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsDismissCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsApprovalRequestsDismissCall) Header ¶
func (c *ProjectsApprovalRequestsDismissCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsApprovalRequestsGetCall ¶
type ProjectsApprovalRequestsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsApprovalRequestsGetCall) Context ¶
func (c *ProjectsApprovalRequestsGetCall) Context(ctx context.Context) *ProjectsApprovalRequestsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsApprovalRequestsGetCall) Do ¶
func (c *ProjectsApprovalRequestsGetCall) Do(opts ...googleapi.CallOption) (*ApprovalRequest, error)
Do executes the "accessapproval.projects.approvalRequests.get" call. Exactly one of *ApprovalRequest or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ApprovalRequest.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsApprovalRequestsGetCall) Fields ¶
func (c *ProjectsApprovalRequestsGetCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsApprovalRequestsGetCall) Header ¶
func (c *ProjectsApprovalRequestsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsApprovalRequestsGetCall) IfNoneMatch ¶
func (c *ProjectsApprovalRequestsGetCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsApprovalRequestsListCall ¶
type ProjectsApprovalRequestsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsApprovalRequestsListCall) Context ¶
func (c *ProjectsApprovalRequestsListCall) Context(ctx context.Context) *ProjectsApprovalRequestsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsApprovalRequestsListCall) Do ¶
func (c *ProjectsApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListApprovalRequestsResponse, error)
Do executes the "accessapproval.projects.approvalRequests.list" call. Exactly one of *ListApprovalRequestsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListApprovalRequestsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsApprovalRequestsListCall) Fields ¶
func (c *ProjectsApprovalRequestsListCall) Fields(s ...googleapi.Field) *ProjectsApprovalRequestsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsApprovalRequestsListCall) Filter ¶
func (c *ProjectsApprovalRequestsListCall) Filter(filter string) *ProjectsApprovalRequestsListCall
Filter sets the optional parameter "filter": A filter on the type of approval requests to retrieve. Must be one of the following values: * [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that . are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.
func (*ProjectsApprovalRequestsListCall) Header ¶
func (c *ProjectsApprovalRequestsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsApprovalRequestsListCall) IfNoneMatch ¶
func (c *ProjectsApprovalRequestsListCall) IfNoneMatch(entityTag string) *ProjectsApprovalRequestsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsApprovalRequestsListCall) PageSize ¶
func (c *ProjectsApprovalRequestsListCall) PageSize(pageSize int64) *ProjectsApprovalRequestsListCall
PageSize sets the optional parameter "pageSize": Requested page size.
func (*ProjectsApprovalRequestsListCall) PageToken ¶
func (c *ProjectsApprovalRequestsListCall) PageToken(pageToken string) *ProjectsApprovalRequestsListCall
PageToken sets the optional parameter "pageToken": A token identifying the page of results to return.
func (*ProjectsApprovalRequestsListCall) Pages ¶
func (c *ProjectsApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListApprovalRequestsResponse) 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.
type ProjectsApprovalRequestsService ¶
type ProjectsApprovalRequestsService struct {
// contains filtered or unexported fields
}
func NewProjectsApprovalRequestsService ¶
func NewProjectsApprovalRequestsService(s *Service) *ProjectsApprovalRequestsService
func (*ProjectsApprovalRequestsService) Approve ¶
func (r *ProjectsApprovalRequestsService) Approve(name string, approveapprovalrequestmessage *ApproveApprovalRequestMessage) *ProjectsApprovalRequestsApproveCall
Approve: Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*ProjectsApprovalRequestsService) Dismiss ¶
func (r *ProjectsApprovalRequestsService) Dismiss(name string, dismissapprovalrequestmessage *DismissApprovalRequestMessage) *ProjectsApprovalRequestsDismissCall
Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
func (*ProjectsApprovalRequestsService) Get ¶
func (r *ProjectsApprovalRequestsService) Get(name string) *ProjectsApprovalRequestsGetCall
Get: Gets an approval request. Returns NOT_FOUND if the request does not exist.
func (*ProjectsApprovalRequestsService) List ¶
func (r *ProjectsApprovalRequestsService) List(parent string) *ProjectsApprovalRequestsListCall
List: Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
type ProjectsDeleteAccessApprovalSettingsCall ¶
type ProjectsDeleteAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsDeleteAccessApprovalSettingsCall) Context ¶
func (c *ProjectsDeleteAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsDeleteAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsDeleteAccessApprovalSettingsCall) Do ¶
func (c *ProjectsDeleteAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "accessapproval.projects.deleteAccessApprovalSettings" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDeleteAccessApprovalSettingsCall) Fields ¶
func (c *ProjectsDeleteAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsDeleteAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsDeleteAccessApprovalSettingsCall) Header ¶
func (c *ProjectsDeleteAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsGetAccessApprovalSettingsCall ¶
type ProjectsGetAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsGetAccessApprovalSettingsCall) Context ¶
func (c *ProjectsGetAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsGetAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsGetAccessApprovalSettingsCall) Do ¶
func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.projects.getAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetAccessApprovalSettingsCall) Fields ¶
func (c *ProjectsGetAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsGetAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsGetAccessApprovalSettingsCall) Header ¶
func (c *ProjectsGetAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsGetAccessApprovalSettingsCall) IfNoneMatch ¶
func (c *ProjectsGetAccessApprovalSettingsCall) IfNoneMatch(entityTag string) *ProjectsGetAccessApprovalSettingsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsService ¶
type ProjectsService struct { ApprovalRequests *ProjectsApprovalRequestsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
func (*ProjectsService) DeleteAccessApprovalSettings ¶
func (r *ProjectsService) DeleteAccessApprovalSettings(name string) *ProjectsDeleteAccessApprovalSettingsCall
DeleteAccessApprovalSettings: Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
func (*ProjectsService) GetAccessApprovalSettings ¶
func (r *ProjectsService) GetAccessApprovalSettings(name string) *ProjectsGetAccessApprovalSettingsCall
GetAccessApprovalSettings: Gets the settings associated with a project, folder, or organization.
func (*ProjectsService) UpdateAccessApprovalSettings ¶
func (r *ProjectsService) UpdateAccessApprovalSettings(name string, accessapprovalsettings *AccessApprovalSettings) *ProjectsUpdateAccessApprovalSettingsCall
UpdateAccessApprovalSettings: Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
type ProjectsUpdateAccessApprovalSettingsCall ¶
type ProjectsUpdateAccessApprovalSettingsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsUpdateAccessApprovalSettingsCall) Context ¶
func (c *ProjectsUpdateAccessApprovalSettingsCall) Context(ctx context.Context) *ProjectsUpdateAccessApprovalSettingsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsUpdateAccessApprovalSettingsCall) Do ¶
func (c *ProjectsUpdateAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) (*AccessApprovalSettings, error)
Do executes the "accessapproval.projects.updateAccessApprovalSettings" call. Exactly one of *AccessApprovalSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccessApprovalSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsUpdateAccessApprovalSettingsCall) Fields ¶
func (c *ProjectsUpdateAccessApprovalSettingsCall) Fields(s ...googleapi.Field) *ProjectsUpdateAccessApprovalSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsUpdateAccessApprovalSettingsCall) Header ¶
func (c *ProjectsUpdateAccessApprovalSettingsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsUpdateAccessApprovalSettingsCall) UpdateMask ¶
func (c *ProjectsUpdateAccessApprovalSettingsCall) UpdateMask(updateMask string) *ProjectsUpdateAccessApprovalSettingsCall
UpdateMask sets the optional parameter "updateMask": The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
type ResourceProperties ¶
type ResourceProperties struct { // ExcludesDescendants: Whether an approval will exclude the descendants // of the resource being requested. ExcludesDescendants bool `json:"excludesDescendants,omitempty"` // ForceSendFields is a list of field names (e.g. "ExcludesDescendants") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExcludesDescendants") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ResourceProperties: The properties associated with the resource of the request.
func (*ResourceProperties) MarshalJSON ¶
func (s *ResourceProperties) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Folders *FoldersService Organizations *OrganizationsService Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.