Movatterモバイル変換


[0]ホーム

URL:


accessapproval

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:1

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package accessapproval provides access to the Access Approval API.

For product documentation, see:https://cloud.google.com/assured-workloads/access-approval/docs

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/accessapproval/v1"...ctx := context.Background()accessapprovalService, err := accessapproval.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

accessapprovalService, err := accessapproval.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)accessapprovalService, err := accessapproval.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAccessApprovalServiceAccountadded inv0.71.0

type AccessApprovalServiceAccount struct {// AccountEmail: Email address of the service account.AccountEmailstring `json:"accountEmail,omitempty"`// Name: The resource name of the Access Approval service account. Format is// one of: * "projects/{project}/serviceAccount" *// "folders/{folder}/serviceAccount" *// "organizations/{organization}/serviceAccount"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountEmail") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountEmail") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccessApprovalServiceAccount: Access Approval service account related to aproject/folder/organization.

func (AccessApprovalServiceAccount)MarshalJSONadded inv0.71.0

func (sAccessApprovalServiceAccount) MarshalJSON() ([]byte,error)

typeAccessApprovalSettings

type AccessApprovalSettings struct {// ActiveKeyVersion: The asymmetric crypto key version to use for signing// approval requests. Empty active_key_version indicates that a Google-managed// key should be used for signing. This property will be ignored if set by an// ancestor of this resource, and new non-empty values may not be set.ActiveKeyVersionstring `json:"activeKeyVersion,omitempty"`// AncestorHasActiveKeyVersion: Output only. This field is read only (not// settable via UpdateAccessApprovalSettings method). If the field is true,// that indicates that an ancestor of this Project or Folder has set// active_key_version (this field will always be unset for the organization// since organizations do not have ancestors).AncestorHasActiveKeyVersionbool `json:"ancestorHasActiveKeyVersion,omitempty"`// ApprovalPolicy: Optional. Policy configuration for Access Approval that sets// the operating mode. The available policies are Transparency, Streamlined// Support, and Approval Required.ApprovalPolicy *CustomerApprovalApprovalPolicy `json:"approvalPolicy,omitempty"`// EffectiveApprovalPolicy: Output only. Effective policy applied for Access// Approval, inclusive of inheritance.EffectiveApprovalPolicy *CustomerApprovalApprovalPolicy `json:"effectiveApprovalPolicy,omitempty"`// EnrolledAncestor: Output only. This field is read only (not settable via// UpdateAccessApprovalSettings 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).EnrolledAncestorbool `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.EnrolledServices []*EnrolledService `json:"enrolledServices,omitempty"`// InvalidKeyVersion: Output only. This field is read only (not settable via// UpdateAccessApprovalSettings method). If the field is true, that indicates// that there is some configuration issue with the active_key_version// configured at this level in the resource hierarchy (e.g. it doesn't exist or// the Access Approval service account doesn't have the correct permissions on// it, etc.) This key version is not necessarily the effective key version at// this level, as key versions are inherited top-down.InvalidKeyVersionbool `json:"invalidKeyVersion,omitempty"`// Name: The resource name of the settings. Format is one of: *// "projects/{project}/accessApprovalSettings" *// "folders/{folder}/accessApprovalSettings" *// "organizations/{organization}/accessApprovalSettings"Namestring `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"`// NotificationPubsubTopic: Optional. A pubsub topic that notifications// relating to access approval are published to. Notifications include// pre-approved accesses.NotificationPubsubTopicstring `json:"notificationPubsubTopic,omitempty"`// PreferNoBroadApprovalRequests: This field is used to set a preference for// granularity of an access approval request. If true, Google personnel will be// asked to send resource-level requests when possible. If false, Google// personnel will be asked to send requests at the project level.PreferNoBroadApprovalRequestsbool `json:"preferNoBroadApprovalRequests,omitempty"`// PreferredRequestExpirationDays: Set the default access approval request// expiration time. This value is able to be set directly by the customer at// the time of approval, overriding this suggested value. We recommend setting// this value to 30 days.PreferredRequestExpirationDaysint64 `json:"preferredRequestExpirationDays,omitempty"`// RequestScopeMaxWidthPreference: Optional. A setting that indicates the// maximum scope of an Access Approval request: either organization, folder, or// project. Google administrators will be asked to send requests no broader// than the configured scope.//// Possible values://   "REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED" - Default value, defaults// to ORGANIZATION if not set. This value is not able to be configured by the// user, do not use.//   "ORGANIZATION" - This is the widest scope possible. It means the customer// has no scope restriction when it comes to Access Approval requests.//   "FOLDER" - Customer allows the scope of Access Approval requests as broad// as the Folder level.//   "PROJECT" - Customer allows the scope of Access Approval requests as broad// as the Project level.RequestScopeMaxWidthPreferencestring `json:"requestScopeMaxWidthPreference,omitempty"`// RequireCustomerVisibleJustification: Optional. When enabled, Google will// only be able to send approval requests for access reasons with a customer// accessible case ID in the reason detail. Also known as "Require customer// initiated support case justification"RequireCustomerVisibleJustificationbool `json:"requireCustomerVisibleJustification,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ActiveKeyVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActiveKeyVersion") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccessApprovalSettings: Settings on a Project/Folder/Organization related toAccess Approval.

func (AccessApprovalSettings)MarshalJSON

func (sAccessApprovalSettings) MarshalJSON() ([]byte,error)

typeAccessLocations

type AccessLocations struct {// PrincipalOfficeCountry: The "home office" location of the Google// administrator. 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 locationPrincipalOfficeCountrystring `json:"principalOfficeCountry,omitempty"`// PrincipalPhysicalLocationCountry: Physical location of the Google// administrator 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 locationPrincipalPhysicalLocationCountrystring `json:"principalPhysicalLocationCountry,omitempty"`// ForceSendFields is a list of field names (e.g. "PrincipalOfficeCountry") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PrincipalOfficeCountry") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccessLocations: Physical assigned office and physical location of theGoogle administrator performing the access.

func (AccessLocations)MarshalJSON

func (sAccessLocations) MarshalJSON() ([]byte,error)

typeAccessReason

type AccessReason struct {// Detail: More detail about certain reason types. See comments for each type// above.Detailstring `json:"detail,omitempty"`// Type: Type of access reason.//// Possible values://   "TYPE_UNSPECIFIED" - This value is not 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. 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.//   "THIRD_PARTY_DATA_REQUEST" - The principal was compelled to access// customer data in order to respond to a legal third party data request or// process, including legal processes from customers themselves.//   "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT" - The principal accessed customer// data in order to diagnose or resolve a suspected issue in services or a// known outage.//   "CLOUD_INITIATED_ACCESS" - Similar to 'GOOGLE_INITIATED_SERVICE' or// 'GOOGLE_INITIATED_REVIEW', but with universe agnostic naming. The principal// accessed customer data in order to diagnose or resolve a suspected issue in// services or a known outage, or for security, fraud, abuse, or compliance// review purposes.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Detail") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AccessReason)MarshalJSON

func (sAccessReason) MarshalJSON() ([]byte,error)

typeApprovalRequest

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_request}".Namestring `json:"name,omitempty"`// RequestTime: The time at which approval was requested.RequestTimestring `json:"requestTime,omitempty"`// RequestedAugmentedInfo: This field contains the augmented information of the// request.RequestedAugmentedInfo *AugmentedInfo `json:"requestedAugmentedInfo,omitempty"`// RequestedDuration: The requested access duration.RequestedDurationstring `json:"requestedDuration,omitempty"`// RequestedExpiration: The original requested expiration for the approval.// Calculated by adding the requested_duration to the request_time.RequestedExpirationstring `json:"requestedExpiration,omitempty"`// RequestedLocations: The locations for which approval is being requested.RequestedLocations *AccessLocations `json:"requestedLocations,omitempty"`// RequestedReason: The access reason 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.RequestedResourceNamestring `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 or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Approve") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApprovalRequest: A request for the customer to approve access to a resource.

func (ApprovalRequest)MarshalJSON

func (sApprovalRequest) MarshalJSON() ([]byte,error)

typeApproveApprovalRequestMessage

type ApproveApprovalRequestMessage struct {// ExpireTime: The expiration time of this approval.ExpireTimestring `json:"expireTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ExpireTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExpireTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApproveApprovalRequestMessage: Request to approve an ApprovalRequest.

func (ApproveApprovalRequestMessage)MarshalJSON

func (sApproveApprovalRequestMessage) MarshalJSON() ([]byte,error)

typeApproveDecision

type ApproveDecision struct {// ApproveTime: The time at which approval was granted.ApproveTimestring `json:"approveTime,omitempty"`// AutoApproved: True when the request has been auto-approved.AutoApprovedbool `json:"autoApproved,omitempty"`// ExpireTime: The time at which the approval expires.ExpireTimestring `json:"expireTime,omitempty"`// InvalidateTime: If set, denotes the timestamp at which the approval is// invalidated.InvalidateTimestring `json:"invalidateTime,omitempty"`// PolicyApproved: True when the request has been approved by the customer's// defined policy.PolicyApprovedbool `json:"policyApproved,omitempty"`// SignatureInfo: The signature for the ApprovalRequest and details on how it// was signed.SignatureInfo *SignatureInfo `json:"signatureInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "ApproveTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApproveTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApproveDecision: A decision that has been made to approve access to aresource.

func (ApproveDecision)MarshalJSON

func (sApproveDecision) MarshalJSON() ([]byte,error)

typeAugmentedInfoadded inv0.195.0

type AugmentedInfo struct {// Command: For command-line tools, the full command-line exactly as entered by// the actor without adding any additional characters (such as quotation// marks).Commandstring `json:"command,omitempty"`// ForceSendFields is a list of field names (e.g. "Command") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Command") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AugmentedInfo: This field contains the augmented information of the request.Requires augmented administrative access to be enabled.

func (AugmentedInfo)MarshalJSONadded inv0.195.0

func (sAugmentedInfo) MarshalJSON() ([]byte,error)

typeCustomerApprovalApprovalPolicyadded inv0.230.0

type CustomerApprovalApprovalPolicy struct {// JustificationBasedApprovalPolicy: Optional. Policy for approval based on the// justification given.//// Possible values://   "JUSTIFICATION_BASED_APPROVAL_POLICY_UNSPECIFIED" - Default value,// defaults to JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED if not set. This value// is not able to be configured by the user, do not use.//   "JUSTIFICATION_BASED_APPROVAL_ENABLED_ALL" - Audit-only mode. All accesses// are pre-approved instantly.//   "JUSTIFICATION_BASED_APPROVAL_ENABLED_EXTERNAL_JUSTIFICATIONS" - Customer// initiated support access reasons are pre-approved instantly. All other// accesses require customer approval.//   "JUSTIFICATION_BASED_APPROVAL_NOT_ENABLED" - All access approval requests// require customer approval. This is the default value if the policy is not// set.//   "JUSTIFICATION_BASED_APPROVAL_INHERITED" - Defer configuration to parent// settings. This is the default value if the policy is not set and the parent// has a value set.JustificationBasedApprovalPolicystring `json:"justificationBasedApprovalPolicy,omitempty"`// ForceSendFields is a list of field names (e.g.// "JustificationBasedApprovalPolicy") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "JustificationBasedApprovalPolicy") to include in API requests with the JSON// null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}

CustomerApprovalApprovalPolicy: Represents all the policies that can be setfor Customer Approval.

func (CustomerApprovalApprovalPolicy)MarshalJSONadded inv0.230.0

func (sCustomerApprovalApprovalPolicy) MarshalJSON() ([]byte,error)

typeDismissApprovalRequestMessage

type DismissApprovalRequestMessage struct {}

DismissApprovalRequestMessage: Request to dismiss an approval request.

typeDismissDecision

type DismissDecision struct {// DismissTime: The time at which the approval request was dismissed.DismissTimestring `json:"dismissTime,omitempty"`// Implicit: This field will be true if the ApprovalRequest was implicitly// dismissed due to inaction by the access approval approvers (the request is// not acted on by the approvers before the exiration time).Implicitbool `json:"implicit,omitempty"`// ForceSendFields is a list of field names (e.g. "DismissTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DismissTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DismissDecision: A decision that has been made to dismiss an approvalrequest.

func (DismissDecision)MarshalJSON

func (sDismissDecision) MarshalJSON() ([]byte,error)

typeEmpty

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 definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

typeEnrolledService

type EnrolledService struct {// CloudProduct: The product for which Access Approval will be enrolled.// Allowed values are listed below (case-sensitive): * all * GA * Access// Context Manager * Anthos Identity Service * AlloyDB for PostgreSQL * Apigee// * Application Integration * App Hub * Artifact Registry * Anthos Service// Mesh * Access Transparency * BigQuery * Certificate Authority Service *// Cloud Bigtable * CCAI Assist and Knowledge * Cloud Dataflow * Cloud Dataproc// * CEP Security Gateway * Compliance Evaluation Service * Cloud Firestore *// Cloud Healthcare API * Chronicle * Cloud AI Companion Gateway - Titan *// Google Cloud Armor * Cloud Asset Inventory * Cloud Asset Search * Cloud// Deploy * Cloud DNS * Cloud Latency * Cloud Memorystore for Redis * CloudNet// Control * Cloud Riptide * Cloud Tasks * Cloud Trace * Cloud Data Transfer *// Cloud Composer * Integration Connectors * Contact Center AI Insights * Cloud// Pub/Sub * Cloud Run * Resource Manager * Cloud Spanner * Database Center *// Cloud Dataform * Cloud Data Fusion * Dataplex * Dialogflow Customer// Experience Edition * Cloud DLP * Document AI * Edge Container * Edge Network// * Cloud EKM * Eventarc * Firebase Data Connect * Firebase Rules * App Engine// * Cloud Build * Compute Engine * Cloud Functions (2nd Gen) * Cloud Filestore// * Cloud Interconnect * Cloud NetApp Volumes * Cloud Storage * Generative AI// App Builder * Google Kubernetes Engine * Backup for GKE API * GKE Connect *// GKE Hub * Hoverboard * Cloud HSM * Cloud Identity and Access Management *// Cloud Identity-Aware Proxy * Infrastructure Manager * Identity Storage// Service * Key Access Justifications * Cloud Key Management Service * Cloud// Logging * Looker (Google Cloud core) * Looker Studio * Management Hub *// Model Armor * Cloud Monitoring * Cloud NAT * Connectivity Hub * External// passthrough Network Load Balancer * OIDC One * Organization Policy Service *// Org Lifecycle * Persistent Disk * Parameter Manager * Private Services// Access * Regional Internal Application Load Balancer * Storage Batch// Operations * Cloud Security Command Center * Secure Source Manager * Seeker// * Service Provisioning * Speaker ID * Secret Manager * Cloud SQL * Cloud// Speech-to-Text * Traffic Director * Cloud Text-to-Speech * USPS Andromeda *// Vertex AI * Virtual Private Cloud (VPC) * VPC Access * VPC Service Controls// Troubleshooter * VPC virtnet * Cloud Workstations * Web Risk Note: These// values are supported as input for legacy purposes, but will not be returned// from the API. * all * ga-only * appengine.googleapis.com *// artifactregistry.googleapis.com * bigquery.googleapis.com *// bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com// * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com *// compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com *// dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com *// orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com *// secretmanager.googleapis.com * speakerid.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-servicesCloudProductstring `json:"cloudProduct,omitempty"`// EnrollmentLevel: The enrollment level of the service.//// Possible values://   "ENROLLMENT_LEVEL_UNSPECIFIED" - Default value if not set, defaults to// "BLOCK_ALL". This value is not available to be set by the user, do not use.//   "BLOCK_ALL" - Service is enrolled in Access Approval for all requestsEnrollmentLevelstring `json:"enrollmentLevel,omitempty"`// ForceSendFields is a list of field names (e.g. "CloudProduct") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CloudProduct") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnrolledService: Represents the enrollment of a cloud resource into aspecific service.

func (EnrolledService)MarshalJSON

func (sEnrolledService) MarshalJSON() ([]byte,error)

typeFoldersApprovalRequestsApproveCall

type FoldersApprovalRequestsApproveCall struct {// contains filtered or unexported fields}

func (*FoldersApprovalRequestsApproveCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersApprovalRequestsApproveCall)Do

Do executes the "accessapproval.folders.approvalRequests.approve" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersApprovalRequestsApproveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersApprovalRequestsApproveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFoldersApprovalRequestsDismissCall

type FoldersApprovalRequestsDismissCall struct {// contains filtered or unexported fields}

func (*FoldersApprovalRequestsDismissCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersApprovalRequestsDismissCall)Do

Do executes the "accessapproval.folders.approvalRequests.dismiss" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersApprovalRequestsDismissCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersApprovalRequestsDismissCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFoldersApprovalRequestsGetCall

type FoldersApprovalRequestsGetCall struct {// contains filtered or unexported fields}

func (*FoldersApprovalRequestsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersApprovalRequestsGetCall)Do

Do executes the "accessapproval.folders.approvalRequests.get" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersApprovalRequestsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersApprovalRequestsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FoldersApprovalRequestsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFoldersApprovalRequestsInvalidateCalladded inv0.81.0

type FoldersApprovalRequestsInvalidateCall struct {// contains filtered or unexported fields}

func (*FoldersApprovalRequestsInvalidateCall)Contextadded inv0.81.0

Context sets the context to be used in this call's Do method.

func (*FoldersApprovalRequestsInvalidateCall)Doadded inv0.81.0

Do executes the "accessapproval.folders.approvalRequests.invalidate" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersApprovalRequestsInvalidateCall)Fieldsadded inv0.81.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersApprovalRequestsInvalidateCall)Headeradded inv0.81.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFoldersApprovalRequestsListCall

type FoldersApprovalRequestsListCall struct {// contains filtered or unexported fields}

func (*FoldersApprovalRequestsListCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersApprovalRequestsListCall)Do

Do executes the "accessapproval.folders.approvalRequests.list" call.Any non-2xx status code is an error. Response headers are in either*ListApprovalRequestsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersApprovalRequestsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersApprovalRequestsListCall)Filter

Filter sets the optional parameter "filter": A filter on the type ofapproval requests to retrieve. Must be one of the following values: * [notset]: Requests that are pending or have active approvals. * ALL: Allrequests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e.currently approved) requests. * DISMISSED: Only requests that have beendismissed, 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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FoldersApprovalRequestsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*FoldersApprovalRequestsListCall)PageSize

PageSize sets the optional parameter "pageSize": Requested page size.

func (*FoldersApprovalRequestsListCall)PageToken

PageToken sets the optional parameter "pageToken": A token identifying thepage of results to return.

func (*FoldersApprovalRequestsListCall)Pages

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.

typeFoldersApprovalRequestsService

type FoldersApprovalRequestsService struct {// contains filtered or unexported fields}

funcNewFoldersApprovalRequestsService

func NewFoldersApprovalRequestsService(s *Service) *FoldersApprovalRequestsService

func (*FoldersApprovalRequestsService)Approve

Approve: Approves a request and returns the updated ApprovalRequest. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the approval request to approve.

func (*FoldersApprovalRequestsService)Dismiss

Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE:When a request is dismissed, it is considered ignored. Dismissing a requestdoes not prevent access granted by other Access Approval requests. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the ApprovalRequest to dismiss.

func (*FoldersApprovalRequestsService)Get

Get: Gets an approval request. Returns NOT_FOUND if the request does notexist.

  • name: The name of the approval request to retrieve. Format:"{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

func (*FoldersApprovalRequestsService)Invalidateadded inv0.81.0

Invalidate: Invalidates an existing ApprovalRequest. Returns the updatedApprovalRequest. NOTE: This action revokes Google access based on thisapproval request. If the resource has other active approvals, access willremain granted. Returns FAILED_PRECONDITION if the request exists but is notin an approved state.

- name: Name of the ApprovalRequest to invalidate.

func (*FoldersApprovalRequestsService)List

List: Lists approval requests associated with a project, folder, ororganization. Approval requests can be filtered by state (pending, active,dismissed). The order is reverse chronological.

  • parent: The parent resource. This may be "projects/{project}","folders/{folder}", or "organizations/{organization}".

typeFoldersDeleteAccessApprovalSettingsCall

type FoldersDeleteAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*FoldersDeleteAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersDeleteAccessApprovalSettingsCall)Do

Do executes the "accessapproval.folders.deleteAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*FoldersDeleteAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersDeleteAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFoldersGetAccessApprovalSettingsCall

type FoldersGetAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*FoldersGetAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersGetAccessApprovalSettingsCall)Do

Do executes the "accessapproval.folders.getAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersGetAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersGetAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FoldersGetAccessApprovalSettingsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFoldersGetServiceAccountCalladded inv0.71.0

type FoldersGetServiceAccountCall struct {// contains filtered or unexported fields}

func (*FoldersGetServiceAccountCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*FoldersGetServiceAccountCall)Doadded inv0.71.0

Do executes the "accessapproval.folders.getServiceAccount" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalServiceAccount.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FoldersGetServiceAccountCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersGetServiceAccountCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FoldersGetServiceAccountCall)IfNoneMatchadded inv0.71.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFoldersService

type FoldersService struct {ApprovalRequests *FoldersApprovalRequestsService// contains filtered or unexported fields}

funcNewFoldersService

func NewFoldersService(s *Service) *FoldersService

func (*FoldersService)DeleteAccessApprovalSettings

func (r *FoldersService) DeleteAccessApprovalSettings(namestring) *FoldersDeleteAccessApprovalSettingsCall

DeleteAccessApprovalSettings: Deletes the settings associated with aproject, folder, or organization. This will have the effect of disablingAccess Approval for the resource. Access Approval may remain active based onparent resource settings. To confirm the effective settings, callGetAccessApprovalSettings and verify effective setting is disabled.

- name: Name of the AccessApprovalSettings to delete.

func (*FoldersService)GetAccessApprovalSettings

func (r *FoldersService) GetAccessApprovalSettings(namestring) *FoldersGetAccessApprovalSettingsCall

GetAccessApprovalSettings: Gets the Access Approval settings associated witha project, folder, or organization.

  • name: The name of the AccessApprovalSettings to retrieve. Format:"{projects|folders|organizations}/{id}/accessApprovalSettings".

func (*FoldersService)GetServiceAccountadded inv0.71.0

func (r *FoldersService) GetServiceAccount(namestring) *FoldersGetServiceAccountCall

GetServiceAccount: Retrieves the service account that is used by AccessApproval to access KMS keys for signing approved approval requests.

- name: Name of the AccessApprovalServiceAccount to retrieve.

func (*FoldersService)UpdateAccessApprovalSettings

func (r *FoldersService) UpdateAccessApprovalSettings(namestring, accessapprovalsettings *AccessApprovalSettings) *FoldersUpdateAccessApprovalSettingsCall

UpdateAccessApprovalSettings: Updates the settings associated with aproject, folder, or organization. Settings to update are determined by thevalue of field_mask.

  • name: The resource name of the settings. Format is one of: *"projects/{project}/accessApprovalSettings" *"folders/{folder}/accessApprovalSettings" *"organizations/{organization}/accessApprovalSettings".

typeFoldersUpdateAccessApprovalSettingsCall

type FoldersUpdateAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*FoldersUpdateAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*FoldersUpdateAccessApprovalSettingsCall)Do

Do executes the "accessapproval.folders.updateAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FoldersUpdateAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FoldersUpdateAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FoldersUpdateAccessApprovalSettingsCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The update mask appliesto the settings. Only the top level fields of AccessApprovalSettings(notification_emails & enrolled_services) are supported. For each field, ifit is included, the currently stored value will be entirely overwritten withthe value of the field passed in this request. For the `FieldMask`definition, seehttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskIf this field is left unset, only the notification_emails field will beupdated.

typeInvalidateApprovalRequestMessageadded inv0.81.0

type InvalidateApprovalRequestMessage struct {}

InvalidateApprovalRequestMessage: Request to invalidate an existingapproval.

typeListApprovalRequestsResponse

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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ApprovalRequests") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovalRequests") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListApprovalRequestsResponse: Response to listing of ApprovalRequestobjects.

func (ListApprovalRequestsResponse)MarshalJSON

func (sListApprovalRequestsResponse) MarshalJSON() ([]byte,error)

typeOrganizationsApprovalRequestsApproveCall

type OrganizationsApprovalRequestsApproveCall struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsApproveCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsApprovalRequestsApproveCall)Do

Do executes the "accessapproval.organizations.approvalRequests.approve" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsApprovalRequestsApproveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsApprovalRequestsApproveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeOrganizationsApprovalRequestsDismissCall

type OrganizationsApprovalRequestsDismissCall struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsDismissCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsApprovalRequestsDismissCall)Do

Do executes the "accessapproval.organizations.approvalRequests.dismiss" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsApprovalRequestsDismissCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsApprovalRequestsDismissCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeOrganizationsApprovalRequestsGetCall

type OrganizationsApprovalRequestsGetCall struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsApprovalRequestsGetCall)Do

Do executes the "accessapproval.organizations.approvalRequests.get" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsApprovalRequestsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsApprovalRequestsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OrganizationsApprovalRequestsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOrganizationsApprovalRequestsInvalidateCalladded inv0.81.0

type OrganizationsApprovalRequestsInvalidateCall struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsInvalidateCall)Contextadded inv0.81.0

Context sets the context to be used in this call's Do method.

func (*OrganizationsApprovalRequestsInvalidateCall)Doadded inv0.81.0

Do executes the "accessapproval.organizations.approvalRequests.invalidate" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsApprovalRequestsInvalidateCall)Fieldsadded inv0.81.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsApprovalRequestsInvalidateCall)Headeradded inv0.81.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeOrganizationsApprovalRequestsListCall

type OrganizationsApprovalRequestsListCall struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsListCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsApprovalRequestsListCall)Do

Do executes the "accessapproval.organizations.approvalRequests.list" call.Any non-2xx status code is an error. Response headers are in either*ListApprovalRequestsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsApprovalRequestsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsApprovalRequestsListCall)Filter

Filter sets the optional parameter "filter": A filter on the type ofapproval requests to retrieve. Must be one of the following values: * [notset]: Requests that are pending or have active approvals. * ALL: Allrequests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e.currently approved) requests. * DISMISSED: Only requests that have beendismissed, 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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OrganizationsApprovalRequestsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*OrganizationsApprovalRequestsListCall)PageSize

PageSize sets the optional parameter "pageSize": Requested page size.

func (*OrganizationsApprovalRequestsListCall)PageToken

PageToken sets the optional parameter "pageToken": A token identifying thepage of results to return.

func (*OrganizationsApprovalRequestsListCall)Pages

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.

typeOrganizationsApprovalRequestsService

type OrganizationsApprovalRequestsService struct {// contains filtered or unexported fields}

func (*OrganizationsApprovalRequestsService)Approve

Approve: Approves a request and returns the updated ApprovalRequest. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the approval request to approve.

func (*OrganizationsApprovalRequestsService)Dismiss

Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE:When a request is dismissed, it is considered ignored. Dismissing a requestdoes not prevent access granted by other Access Approval requests. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the ApprovalRequest to dismiss.

func (*OrganizationsApprovalRequestsService)Get

Get: Gets an approval request. Returns NOT_FOUND if the request does notexist.

  • name: The name of the approval request to retrieve. Format:"{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

func (*OrganizationsApprovalRequestsService)Invalidateadded inv0.81.0

Invalidate: Invalidates an existing ApprovalRequest. Returns the updatedApprovalRequest. NOTE: This action revokes Google access based on thisapproval request. If the resource has other active approvals, access willremain granted. Returns FAILED_PRECONDITION if the request exists but is notin an approved state.

- name: Name of the ApprovalRequest to invalidate.

func (*OrganizationsApprovalRequestsService)List

List: Lists approval requests associated with a project, folder, ororganization. Approval requests can be filtered by state (pending, active,dismissed). The order is reverse chronological.

  • parent: The parent resource. This may be "projects/{project}","folders/{folder}", or "organizations/{organization}".

typeOrganizationsDeleteAccessApprovalSettingsCall

type OrganizationsDeleteAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*OrganizationsDeleteAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsDeleteAccessApprovalSettingsCall)Do

Do executes the "accessapproval.organizations.deleteAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*OrganizationsDeleteAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsDeleteAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeOrganizationsGetAccessApprovalSettingsCall

type OrganizationsGetAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*OrganizationsGetAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsGetAccessApprovalSettingsCall)Do

Do executes the "accessapproval.organizations.getAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsGetAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsGetAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OrganizationsGetAccessApprovalSettingsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOrganizationsGetServiceAccountCalladded inv0.71.0

type OrganizationsGetServiceAccountCall struct {// contains filtered or unexported fields}

func (*OrganizationsGetServiceAccountCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*OrganizationsGetServiceAccountCall)Doadded inv0.71.0

Do executes the "accessapproval.organizations.getServiceAccount" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalServiceAccount.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OrganizationsGetServiceAccountCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsGetServiceAccountCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OrganizationsGetServiceAccountCall)IfNoneMatchadded inv0.71.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOrganizationsService

type OrganizationsService struct {ApprovalRequests *OrganizationsApprovalRequestsService// contains filtered or unexported fields}

funcNewOrganizationsService

func NewOrganizationsService(s *Service) *OrganizationsService

func (*OrganizationsService)DeleteAccessApprovalSettings

DeleteAccessApprovalSettings: Deletes the settings associated with aproject, folder, or organization. This will have the effect of disablingAccess Approval for the resource. Access Approval may remain active based onparent resource settings. To confirm the effective settings, callGetAccessApprovalSettings and verify effective setting is disabled.

- name: Name of the AccessApprovalSettings to delete.

func (*OrganizationsService)GetAccessApprovalSettings

GetAccessApprovalSettings: Gets the Access Approval settings associated witha project, folder, or organization.

  • name: The name of the AccessApprovalSettings to retrieve. Format:"{projects|folders|organizations}/{id}/accessApprovalSettings".

func (*OrganizationsService)GetServiceAccountadded inv0.71.0

GetServiceAccount: Retrieves the service account that is used by AccessApproval to access KMS keys for signing approved approval requests.

- name: Name of the AccessApprovalServiceAccount to retrieve.

func (*OrganizationsService)UpdateAccessApprovalSettings

func (r *OrganizationsService) UpdateAccessApprovalSettings(namestring, accessapprovalsettings *AccessApprovalSettings) *OrganizationsUpdateAccessApprovalSettingsCall

UpdateAccessApprovalSettings: Updates the settings associated with aproject, folder, or organization. Settings to update are determined by thevalue of field_mask.

  • name: The resource name of the settings. Format is one of: *"projects/{project}/accessApprovalSettings" *"folders/{folder}/accessApprovalSettings" *"organizations/{organization}/accessApprovalSettings".

typeOrganizationsUpdateAccessApprovalSettingsCall

type OrganizationsUpdateAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*OrganizationsUpdateAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*OrganizationsUpdateAccessApprovalSettingsCall)Do

Do executes the "accessapproval.organizations.updateAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OrganizationsUpdateAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OrganizationsUpdateAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OrganizationsUpdateAccessApprovalSettingsCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The update mask appliesto the settings. Only the top level fields of AccessApprovalSettings(notification_emails & enrolled_services) are supported. For each field, ifit is included, the currently stored value will be entirely overwritten withthe value of the field passed in this request. For the `FieldMask`definition, seehttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskIf this field is left unset, only the notification_emails field will beupdated.

typeProjectsApprovalRequestsApproveCall

type ProjectsApprovalRequestsApproveCall struct {// contains filtered or unexported fields}

func (*ProjectsApprovalRequestsApproveCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsApprovalRequestsApproveCall)Do

Do executes the "accessapproval.projects.approvalRequests.approve" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsApprovalRequestsApproveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsApprovalRequestsApproveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsApprovalRequestsDismissCall

type ProjectsApprovalRequestsDismissCall struct {// contains filtered or unexported fields}

func (*ProjectsApprovalRequestsDismissCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsApprovalRequestsDismissCall)Do

Do executes the "accessapproval.projects.approvalRequests.dismiss" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsApprovalRequestsDismissCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsApprovalRequestsDismissCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsApprovalRequestsGetCall

type ProjectsApprovalRequestsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsApprovalRequestsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsApprovalRequestsGetCall)Do

Do executes the "accessapproval.projects.approvalRequests.get" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsApprovalRequestsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsApprovalRequestsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsApprovalRequestsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsApprovalRequestsInvalidateCalladded inv0.81.0

type ProjectsApprovalRequestsInvalidateCall struct {// contains filtered or unexported fields}

func (*ProjectsApprovalRequestsInvalidateCall)Contextadded inv0.81.0

Context sets the context to be used in this call's Do method.

func (*ProjectsApprovalRequestsInvalidateCall)Doadded inv0.81.0

Do executes the "accessapproval.projects.approvalRequests.invalidate" call.Any non-2xx status code is an error. Response headers are in either*ApprovalRequest.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsApprovalRequestsInvalidateCall)Fieldsadded inv0.81.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsApprovalRequestsInvalidateCall)Headeradded inv0.81.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsApprovalRequestsListCall

type ProjectsApprovalRequestsListCall struct {// contains filtered or unexported fields}

func (*ProjectsApprovalRequestsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsApprovalRequestsListCall)Do

Do executes the "accessapproval.projects.approvalRequests.list" call.Any non-2xx status code is an error. Response headers are in either*ListApprovalRequestsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsApprovalRequestsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsApprovalRequestsListCall)Filter

Filter sets the optional parameter "filter": A filter on the type ofapproval requests to retrieve. Must be one of the following values: * [notset]: Requests that are pending or have active approvals. * ALL: Allrequests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e.currently approved) requests. * DISMISSED: Only requests that have beendismissed, 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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsApprovalRequestsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsApprovalRequestsListCall)PageSize

PageSize sets the optional parameter "pageSize": Requested page size.

func (*ProjectsApprovalRequestsListCall)PageToken

PageToken sets the optional parameter "pageToken": A token identifying thepage of results to return.

func (*ProjectsApprovalRequestsListCall)Pages

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.

typeProjectsApprovalRequestsService

type ProjectsApprovalRequestsService struct {// contains filtered or unexported fields}

funcNewProjectsApprovalRequestsService

func NewProjectsApprovalRequestsService(s *Service) *ProjectsApprovalRequestsService

func (*ProjectsApprovalRequestsService)Approve

Approve: Approves a request and returns the updated ApprovalRequest. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the approval request to approve.

func (*ProjectsApprovalRequestsService)Dismiss

Dismiss: Dismisses a request. Returns the updated ApprovalRequest. NOTE:When a request is dismissed, it is considered ignored. Dismissing a requestdoes not prevent access granted by other Access Approval requests. ReturnsNOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if therequest exists but is not in a pending state.

- name: Name of the ApprovalRequest to dismiss.

func (*ProjectsApprovalRequestsService)Get

Get: Gets an approval request. Returns NOT_FOUND if the request does notexist.

  • name: The name of the approval request to retrieve. Format:"{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".

func (*ProjectsApprovalRequestsService)Invalidateadded inv0.81.0

Invalidate: Invalidates an existing ApprovalRequest. Returns the updatedApprovalRequest. NOTE: This action revokes Google access based on thisapproval request. If the resource has other active approvals, access willremain granted. Returns FAILED_PRECONDITION if the request exists but is notin an approved state.

- name: Name of the ApprovalRequest to invalidate.

func (*ProjectsApprovalRequestsService)List

List: Lists approval requests associated with a project, folder, ororganization. Approval requests can be filtered by state (pending, active,dismissed). The order is reverse chronological.

  • parent: The parent resource. This may be "projects/{project}","folders/{folder}", or "organizations/{organization}".

typeProjectsDeleteAccessApprovalSettingsCall

type ProjectsDeleteAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*ProjectsDeleteAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsDeleteAccessApprovalSettingsCall)Do

Do executes the "accessapproval.projects.deleteAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsDeleteAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsDeleteAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsGetAccessApprovalSettingsCall

type ProjectsGetAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*ProjectsGetAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsGetAccessApprovalSettingsCall)Do

Do executes the "accessapproval.projects.getAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsGetAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsGetAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsGetAccessApprovalSettingsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsGetServiceAccountCalladded inv0.71.0

type ProjectsGetServiceAccountCall struct {// contains filtered or unexported fields}

func (*ProjectsGetServiceAccountCall)Contextadded inv0.71.0

Context sets the context to be used in this call's Do method.

func (*ProjectsGetServiceAccountCall)Doadded inv0.71.0

Do executes the "accessapproval.projects.getServiceAccount" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalServiceAccount.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProjectsGetServiceAccountCall)Fieldsadded inv0.71.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsGetServiceAccountCall)Headeradded inv0.71.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsGetServiceAccountCall)IfNoneMatchadded inv0.71.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsService

type ProjectsService struct {ApprovalRequests *ProjectsApprovalRequestsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService)DeleteAccessApprovalSettings

func (r *ProjectsService) DeleteAccessApprovalSettings(namestring) *ProjectsDeleteAccessApprovalSettingsCall

DeleteAccessApprovalSettings: Deletes the settings associated with aproject, folder, or organization. This will have the effect of disablingAccess Approval for the resource. Access Approval may remain active based onparent resource settings. To confirm the effective settings, callGetAccessApprovalSettings and verify effective setting is disabled.

- name: Name of the AccessApprovalSettings to delete.

func (*ProjectsService)GetAccessApprovalSettings

func (r *ProjectsService) GetAccessApprovalSettings(namestring) *ProjectsGetAccessApprovalSettingsCall

GetAccessApprovalSettings: Gets the Access Approval settings associated witha project, folder, or organization.

  • name: The name of the AccessApprovalSettings to retrieve. Format:"{projects|folders|organizations}/{id}/accessApprovalSettings".

func (*ProjectsService)GetServiceAccountadded inv0.71.0

func (r *ProjectsService) GetServiceAccount(namestring) *ProjectsGetServiceAccountCall

GetServiceAccount: Retrieves the service account that is used by AccessApproval to access KMS keys for signing approved approval requests.

- name: Name of the AccessApprovalServiceAccount to retrieve.

func (*ProjectsService)UpdateAccessApprovalSettings

func (r *ProjectsService) UpdateAccessApprovalSettings(namestring, accessapprovalsettings *AccessApprovalSettings) *ProjectsUpdateAccessApprovalSettingsCall

UpdateAccessApprovalSettings: Updates the settings associated with aproject, folder, or organization. Settings to update are determined by thevalue of field_mask.

  • name: The resource name of the settings. Format is one of: *"projects/{project}/accessApprovalSettings" *"folders/{folder}/accessApprovalSettings" *"organizations/{organization}/accessApprovalSettings".

typeProjectsUpdateAccessApprovalSettingsCall

type ProjectsUpdateAccessApprovalSettingsCall struct {// contains filtered or unexported fields}

func (*ProjectsUpdateAccessApprovalSettingsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsUpdateAccessApprovalSettingsCall)Do

Do executes the "accessapproval.projects.updateAccessApprovalSettings" call.Any non-2xx status code is an error. Response headers are in either*AccessApprovalSettings.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsUpdateAccessApprovalSettingsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsUpdateAccessApprovalSettingsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsUpdateAccessApprovalSettingsCall)UpdateMask

UpdateMask sets the optional parameter "updateMask": The update mask appliesto the settings. Only the top level fields of AccessApprovalSettings(notification_emails & enrolled_services) are supported. For each field, ifit is included, the currently stored value will be entirely overwritten withthe value of the field passed in this request. For the `FieldMask`definition, seehttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmaskIf this field is left unset, only the notification_emails field will beupdated.

typeResourceProperties

type ResourceProperties struct {// ExcludesDescendants: Whether an approval will exclude the descendants of the// resource being requested.ExcludesDescendantsbool `json:"excludesDescendants,omitempty"`// ForceSendFields is a list of field names (e.g. "ExcludesDescendants") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExcludesDescendants") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ResourceProperties: The properties associated with the resource of therequest.

func (ResourceProperties)MarshalJSON

func (sResourceProperties) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentFolders *FoldersServiceOrganizations *OrganizationsServiceProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeSignatureInfoadded inv0.71.0

type SignatureInfo struct {// CustomerKmsKeyVersion: The resource name of the customer CryptoKeyVersion// used for signing.CustomerKmsKeyVersionstring `json:"customerKmsKeyVersion,omitempty"`// GoogleKeyAlgorithm: The hashing algorithm used for signature verification.// It will only be present in the case of Google managed keys.//// Possible values://   "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" - Not specified.//   "GOOGLE_SYMMETRIC_ENCRYPTION" - Creates symmetric encryption keys.//   "AES_128_GCM" - AES-GCM (Galois Counter Mode) using 128-bit keys.//   "AES_256_GCM" - AES-GCM (Galois Counter Mode) using 256-bit keys.//   "AES_128_CBC" - AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.//   "AES_256_CBC" - AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.//   "AES_128_CTR" - AES-CTR (Counter Mode) using 128-bit keys.//   "AES_256_CTR" - AES-CTR (Counter Mode) using 256-bit keys.//   "RSA_SIGN_PSS_2048_SHA256" - RSASSA-PSS 2048 bit key with a SHA256 digest.//   "RSA_SIGN_PSS_3072_SHA256" - RSASSA-PSS 3072 bit key with a SHA256 digest.//   "RSA_SIGN_PSS_4096_SHA256" - RSASSA-PSS 4096 bit key with a SHA256 digest.//   "RSA_SIGN_PSS_4096_SHA512" - RSASSA-PSS 4096 bit key with a SHA512 digest.//   "RSA_SIGN_PKCS1_2048_SHA256" - RSASSA-PKCS1-v1_5 with a 2048 bit key and a// SHA256 digest.//   "RSA_SIGN_PKCS1_3072_SHA256" - RSASSA-PKCS1-v1_5 with a 3072 bit key and a// SHA256 digest.//   "RSA_SIGN_PKCS1_4096_SHA256" - RSASSA-PKCS1-v1_5 with a 4096 bit key and a// SHA256 digest.//   "RSA_SIGN_PKCS1_4096_SHA512" - RSASSA-PKCS1-v1_5 with a 4096 bit key and a// SHA512 digest.//   "RSA_SIGN_RAW_PKCS1_2048" - RSASSA-PKCS1-v1_5 signing without encoding,// with a 2048 bit key.//   "RSA_SIGN_RAW_PKCS1_3072" - RSASSA-PKCS1-v1_5 signing without encoding,// with a 3072 bit key.//   "RSA_SIGN_RAW_PKCS1_4096" - RSASSA-PKCS1-v1_5 signing without encoding,// with a 4096 bit key.//   "RSA_DECRYPT_OAEP_2048_SHA256" - RSAES-OAEP 2048 bit key with a SHA256// digest.//   "RSA_DECRYPT_OAEP_3072_SHA256" - RSAES-OAEP 3072 bit key with a SHA256// digest.//   "RSA_DECRYPT_OAEP_4096_SHA256" - RSAES-OAEP 4096 bit key with a SHA256// digest.//   "RSA_DECRYPT_OAEP_4096_SHA512" - RSAES-OAEP 4096 bit key with a SHA512// digest.//   "RSA_DECRYPT_OAEP_2048_SHA1" - RSAES-OAEP 2048 bit key with a SHA1 digest.//   "RSA_DECRYPT_OAEP_3072_SHA1" - RSAES-OAEP 3072 bit key with a SHA1 digest.//   "RSA_DECRYPT_OAEP_4096_SHA1" - RSAES-OAEP 4096 bit key with a SHA1 digest.//   "EC_SIGN_P256_SHA256" - ECDSA on the NIST P-256 curve with a SHA256// digest. Other hash functions can also be used://https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms//   "EC_SIGN_P384_SHA384" - ECDSA on the NIST P-384 curve with a SHA384// digest. Other hash functions can also be used://https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms//   "EC_SIGN_SECP256K1_SHA256" - ECDSA on the non-NIST secp256k1 curve. This// curve is only supported for HSM protection level. Other hash functions can// also be used://https://cloud.google.com/kms/docs/create-validate-signatures#ecdsa_support_for_other_hash_algorithms//   "EC_SIGN_ED25519" - EdDSA on the Curve25519 in pure mode (taking data as// input).//   "HMAC_SHA256" - HMAC-SHA256 signing with a 256 bit key.//   "HMAC_SHA1" - HMAC-SHA1 signing with a 160 bit key.//   "HMAC_SHA384" - HMAC-SHA384 signing with a 384 bit key.//   "HMAC_SHA512" - HMAC-SHA512 signing with a 512 bit key.//   "HMAC_SHA224" - HMAC-SHA224 signing with a 224 bit key.//   "EXTERNAL_SYMMETRIC_ENCRYPTION" - Algorithm representing symmetric// encryption by an external key manager.//   "ML_KEM_768" - ML-KEM-768 (FIPS 203)//   "ML_KEM_1024" - ML-KEM-1024 (FIPS 203)//   "KEM_XWING" - X-Wing hybrid KEM combining ML-KEM-768 with X25519 following// datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem/.//   "PQ_SIGN_ML_DSA_44" - The post-quantum Module-Lattice-Based Digital// Signature Algorithm, at security level 1. Randomized version.//   "PQ_SIGN_ML_DSA_65" - The post-quantum Module-Lattice-Based Digital// Signature Algorithm, at security level 3. Randomized version.//   "PQ_SIGN_ML_DSA_87" - The post-quantum Module-Lattice-Based Digital// Signature Algorithm, at security level 5. Randomized version.//   "PQ_SIGN_SLH_DSA_SHA2_128S" - The post-quantum stateless hash-based// digital signature algorithm, at security level 1. Randomized version.//   "PQ_SIGN_HASH_SLH_DSA_SHA2_128S_SHA256" - The post-quantum stateless// hash-based digital signature algorithm, at security level 1. Randomized// pre-hash version supporting SHA256 digests.GoogleKeyAlgorithmstring `json:"googleKeyAlgorithm,omitempty"`// GooglePublicKeyPem: The public key for the Google default signing, encoded// in PEM format. The signature was created using a private key which may be// verified using this public key.GooglePublicKeyPemstring `json:"googlePublicKeyPem,omitempty"`// SerializedApprovalRequest: The ApprovalRequest that is serialized without// the SignatureInfo message field. This data is used with the hashing// algorithm to generate the digital signature, and it can be used for// signature verification.SerializedApprovalRequeststring `json:"serializedApprovalRequest,omitempty"`// Signature: The digital signature.Signaturestring `json:"signature,omitempty"`// ForceSendFields is a list of field names (e.g. "CustomerKmsKeyVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomerKmsKeyVersion") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SignatureInfo: Information about the digital signature of the resource.

func (SignatureInfo)MarshalJSONadded inv0.71.0

func (sSignatureInfo) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp