cloudcontrolspartner
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package cloudcontrolspartner provides access to the Cloud Controls Partner API.
For product documentation, see:https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners/reference/rest
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/cloudcontrolspartner/v1"...ctx := context.Background()cloudcontrolspartnerService, err := cloudcontrolspartner.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:
cloudcontrolspartnerService, err := cloudcontrolspartner.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, ...)cloudcontrolspartnerService, err := cloudcontrolspartner.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AccessApprovalRequest
- type AccessReason
- type ConnectionError
- type Console
- type Customer
- type CustomerOnboardingState
- type CustomerOnboardingStep
- type EkmConnection
- type EkmConnections
- type EkmMetadata
- type Empty
- type Gcloud
- type Instructions
- type ListAccessApprovalRequestsResponse
- type ListCustomersResponse
- type ListViolationsResponse
- type ListWorkloadsResponse
- type OperationMetadata
- type OrganizationsLocationsCustomersCreateCall
- func (c *OrganizationsLocationsCustomersCreateCall) Context(ctx context.Context) *OrganizationsLocationsCustomersCreateCall
- func (c *OrganizationsLocationsCustomersCreateCall) CustomerId(customerId string) *OrganizationsLocationsCustomersCreateCall
- func (c *OrganizationsLocationsCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Customer, error)
- func (c *OrganizationsLocationsCustomersCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersCreateCall
- func (c *OrganizationsLocationsCustomersCreateCall) Header() http.Header
- type OrganizationsLocationsCustomersDeleteCall
- func (c *OrganizationsLocationsCustomersDeleteCall) Context(ctx context.Context) *OrganizationsLocationsCustomersDeleteCall
- func (c *OrganizationsLocationsCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsLocationsCustomersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersDeleteCall
- func (c *OrganizationsLocationsCustomersDeleteCall) Header() http.Header
- type OrganizationsLocationsCustomersGetCall
- func (c *OrganizationsLocationsCustomersGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersGetCall
- func (c *OrganizationsLocationsCustomersGetCall) Do(opts ...googleapi.CallOption) (*Customer, error)
- func (c *OrganizationsLocationsCustomersGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersGetCall
- func (c *OrganizationsLocationsCustomersGetCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersGetCall
- type OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCustomersResponse, error)
- func (c *OrganizationsLocationsCustomersListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) Filter(filter string) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersListCall
- func (c *OrganizationsLocationsCustomersListCall) Pages(ctx context.Context, f func(*ListCustomersResponse) error) error
- type OrganizationsLocationsCustomersPatchCall
- func (c *OrganizationsLocationsCustomersPatchCall) Context(ctx context.Context) *OrganizationsLocationsCustomersPatchCall
- func (c *OrganizationsLocationsCustomersPatchCall) Do(opts ...googleapi.CallOption) (*Customer, error)
- func (c *OrganizationsLocationsCustomersPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersPatchCall
- func (c *OrganizationsLocationsCustomersPatchCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsCustomersPatchCall
- type OrganizationsLocationsCustomersService
- func (r *OrganizationsLocationsCustomersService) Create(parent string, customer *Customer) *OrganizationsLocationsCustomersCreateCall
- func (r *OrganizationsLocationsCustomersService) Delete(name string) *OrganizationsLocationsCustomersDeleteCall
- func (r *OrganizationsLocationsCustomersService) Get(name string) *OrganizationsLocationsCustomersGetCall
- func (r *OrganizationsLocationsCustomersService) List(parent string) *OrganizationsLocationsCustomersListCall
- func (r *OrganizationsLocationsCustomersService) Patch(name string, customer *Customer) *OrganizationsLocationsCustomersPatchCall
- type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListAccessApprovalRequestsResponse, error)
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Pages(ctx context.Context, f func(*ListAccessApprovalRequestsResponse) error) error
- type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService
- type OrganizationsLocationsCustomersWorkloadsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*Workload, error)
- func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetCall
- type OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Do(opts ...googleapi.CallOption) (*EkmConnections, error)
- func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
- type OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Do(opts ...googleapi.CallOption) (*PartnerPermissions, error)
- func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
- func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
- type OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadsResponse, error)
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsListCall) Pages(ctx context.Context, f func(*ListWorkloadsResponse) error) error
- type OrganizationsLocationsCustomersWorkloadsService
- func (r *OrganizationsLocationsCustomersWorkloadsService) Get(name string) *OrganizationsLocationsCustomersWorkloadsGetCall
- func (r *OrganizationsLocationsCustomersWorkloadsService) GetEkmConnections(name string) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
- func (r *OrganizationsLocationsCustomersWorkloadsService) GetPartnerPermissions(name string) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
- func (r *OrganizationsLocationsCustomersWorkloadsService) List(parent string) *OrganizationsLocationsCustomersWorkloadsListCall
- type OrganizationsLocationsCustomersWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Do(opts ...googleapi.CallOption) (*Violation, error)
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
- type OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Context(ctx context.Context) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Do(opts ...googleapi.CallOption) (*ListViolationsResponse, error)
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Filter(filter string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Header() http.Header
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalEndTime(intervalEndTime string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalStartTime(intervalStartTime string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) OrderBy(orderBy string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageSize(pageSize int64) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageToken(pageToken string) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
- func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Pages(ctx context.Context, f func(*ListViolationsResponse) error) error
- type OrganizationsLocationsCustomersWorkloadsViolationsService
- type OrganizationsLocationsGetPartnerCall
- func (c *OrganizationsLocationsGetPartnerCall) Context(ctx context.Context) *OrganizationsLocationsGetPartnerCall
- func (c *OrganizationsLocationsGetPartnerCall) Do(opts ...googleapi.CallOption) (*Partner, error)
- func (c *OrganizationsLocationsGetPartnerCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGetPartnerCall
- func (c *OrganizationsLocationsGetPartnerCall) Header() http.Header
- func (c *OrganizationsLocationsGetPartnerCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGetPartnerCall
- type OrganizationsLocationsService
- type OrganizationsService
- type Partner
- type PartnerPermissions
- type Remediation
- type Service
- type Sku
- type Violation
- type Workload
- type WorkloadOnboardingState
- type WorkloadOnboardingStep
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAccessApprovalRequest¶
type AccessApprovalRequest struct {// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}/workl// oads/{workload}/accessApprovalRequests/{access_approval_request}`Namestring `json:"name,omitempty"`// RequestTime: The time at which approval was requested.RequestTimestring `json:"requestTime,omitempty"`// RequestedExpirationTime: The requested expiration for the approval. If the// request is approved, access will be granted from the time of approval until// the expiration time.RequestedExpirationTimestring `json:"requestedExpirationTime,omitempty"`// RequestedReason: The justification for which approval is being requested.RequestedReason *AccessReason `json:"requestedReason,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}AccessApprovalRequest: Details about the Access request.
func (AccessApprovalRequest)MarshalJSON¶
func (sAccessApprovalRequest) 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 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. 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:"-"`}AccessReason: Reason for the access.
func (AccessReason)MarshalJSON¶
func (sAccessReason) MarshalJSON() ([]byte,error)
typeConnectionError¶
type ConnectionError struct {// ErrorDomain: The error domain for the errorErrorDomainstring `json:"errorDomain,omitempty"`// ErrorMessage: The error message for the errorErrorMessagestring `json:"errorMessage,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorDomain") 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. "ErrorDomain") 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:"-"`}ConnectionError: Information around the error that occurred if theconnection state is anything other than available or unspecified
func (ConnectionError)MarshalJSON¶
func (sConnectionError) MarshalJSON() ([]byte,error)
typeConsole¶
type Console struct {// AdditionalLinks: Additional urls for more information about stepsAdditionalLinks []string `json:"additionalLinks,omitempty"`// ConsoleUris: Link to console page where violations can be resolvedConsoleUris []string `json:"consoleUris,omitempty"`// Steps: Steps to resolve violation via cloud consoleSteps []string `json:"steps,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalLinks") 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. "AdditionalLinks") 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:"-"`}Console: Remediation instructions to resolve violation via cloud console
func (Console)MarshalJSON¶
typeCustomer¶
type Customer struct {// CustomerOnboardingState: Output only. Container for customer onboarding// stepsCustomerOnboardingState *CustomerOnboardingState `json:"customerOnboardingState,omitempty"`// DisplayName: Required. Display name for the customerDisplayNamestring `json:"displayName,omitempty"`// IsOnboarded: Output only. Indicates whether a customer is fully onboardedIsOnboardedbool `json:"isOnboarded,omitempty"`// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}`Namestring `json:"name,omitempty"`// OrganizationDomain: Output only. The customer organization domain, extracted// from CRM Organization’s display_name field. e.g. "google.com"OrganizationDomainstring `json:"organizationDomain,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CustomerOnboardingState") 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. "CustomerOnboardingState") 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:"-"`}Customer: Contains metadata around a Cloud Controls Partner Customer
func (Customer)MarshalJSON¶
typeCustomerOnboardingState¶
type CustomerOnboardingState struct {// OnboardingSteps: List of customer onboarding stepsOnboardingSteps []*CustomerOnboardingStep `json:"onboardingSteps,omitempty"`// ForceSendFields is a list of field names (e.g. "OnboardingSteps") 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. "OnboardingSteps") 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:"-"`}CustomerOnboardingState: Container for customer onboarding steps
func (CustomerOnboardingState)MarshalJSON¶
func (sCustomerOnboardingState) MarshalJSON() ([]byte,error)
typeCustomerOnboardingStep¶
type CustomerOnboardingStep struct {// CompletionState: Output only. Current state of the step//// Possible values:// "COMPLETION_STATE_UNSPECIFIED" - Unspecified completion state.// "PENDING" - Task started (has start date) but not yet completed.// "SUCCEEDED" - Succeeded state.// "FAILED" - Failed state.// "NOT_APPLICABLE" - Not applicable state.CompletionStatestring `json:"completionState,omitempty"`// CompletionTime: The completion time of the onboarding stepCompletionTimestring `json:"completionTime,omitempty"`// StartTime: The starting time of the onboarding stepStartTimestring `json:"startTime,omitempty"`// Step: The onboarding step//// Possible values:// "STEP_UNSPECIFIED" - Unspecified step// "KAJ_ENROLLMENT" - KAJ Enrollment// "CUSTOMER_ENVIRONMENT" - Customer EnvironmentStepstring `json:"step,omitempty"`// ForceSendFields is a list of field names (e.g. "CompletionState") 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. "CompletionState") 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:"-"`}CustomerOnboardingStep: Container for customer onboarding information
func (CustomerOnboardingStep)MarshalJSON¶
func (sCustomerOnboardingStep) MarshalJSON() ([]byte,error)
typeEkmConnection¶
type EkmConnection struct {// ConnectionError: The connection error that occurred if anyConnectionError *ConnectionError `json:"connectionError,omitempty"`// ConnectionName: Resource name of the EKM connection in the format:// projects/{project}/locations/{location}/ekmConnections/{ekm_connection}ConnectionNamestring `json:"connectionName,omitempty"`// ConnectionState: Output only. The connection state//// Possible values:// "CONNECTION_STATE_UNSPECIFIED" - Unspecified EKM connection state// "AVAILABLE" - Available EKM connection state// "NOT_AVAILABLE" - Not available EKM connection state// "ERROR" - Error EKM connection state// "PERMISSION_DENIED" - Permission denied EKM connection stateConnectionStatestring `json:"connectionState,omitempty"`// ForceSendFields is a list of field names (e.g. "ConnectionError") 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. "ConnectionError") 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:"-"`}EkmConnection: Details about the EKM connection
func (EkmConnection)MarshalJSON¶
func (sEkmConnection) MarshalJSON() ([]byte,error)
typeEkmConnections¶
type EkmConnections struct {// EkmConnections: The EKM connections associated with the workloadEkmConnections []*EkmConnection `json:"ekmConnections,omitempty"`// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}/workl// oads/{workload}/ekmConnections`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. "EkmConnections") 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. "EkmConnections") 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:"-"`}EkmConnections: The EKM connections associated with a workload
func (EkmConnections)MarshalJSON¶
func (sEkmConnections) MarshalJSON() ([]byte,error)
typeEkmMetadata¶
type EkmMetadata struct {// EkmEndpointUri: Endpoint for sending requests to the EKM for key// provisioning during Assured Workload creation.EkmEndpointUristring `json:"ekmEndpointUri,omitempty"`// EkmSolution: The Cloud EKM partner.//// Possible values:// "EKM_SOLUTION_UNSPECIFIED" - Unspecified EKM solution// "FORTANIX" - EKM Partner Fortanix// "FUTUREX" - EKM Partner FutureX// "THALES" - EKM Partner Thales// "VIRTRU" - This enum value is never used.EkmSolutionstring `json:"ekmSolution,omitempty"`// ForceSendFields is a list of field names (e.g. "EkmEndpointUri") 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. "EkmEndpointUri") 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:"-"`}EkmMetadata: Holds information needed by Mudbray to use partner EKMs forworkloads.
func (EkmMetadata)MarshalJSON¶
func (sEkmMetadata) MarshalJSON() ([]byte,error)
typeEmpty¶added inv0.204.0
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); }
typeGcloud¶
type Gcloud struct {// AdditionalLinks: Additional urls for more information about stepsAdditionalLinks []string `json:"additionalLinks,omitempty"`// GcloudCommands: Gcloud command to resolve violationGcloudCommands []string `json:"gcloudCommands,omitempty"`// Steps: Steps to resolve violation via gcloud cliSteps []string `json:"steps,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalLinks") 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. "AdditionalLinks") 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:"-"`}Gcloud: Remediation instructions to resolve violation via gcloud cli
func (Gcloud)MarshalJSON¶
typeInstructions¶
type Instructions struct {// ConsoleInstructions: Remediation instructions to resolve violation via cloud// consoleConsoleInstructions *Console `json:"consoleInstructions,omitempty"`// GcloudInstructions: Remediation instructions to resolve violation via gcloud// cliGcloudInstructions *Gcloud `json:"gcloudInstructions,omitempty"`// ForceSendFields is a list of field names (e.g. "ConsoleInstructions") 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. "ConsoleInstructions") 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:"-"`}Instructions: Instructions to remediate violation
func (Instructions)MarshalJSON¶
func (sInstructions) MarshalJSON() ([]byte,error)
typeListAccessApprovalRequestsResponse¶
type ListAccessApprovalRequestsResponse struct {// AccessApprovalRequests: List of access approval requestsAccessApprovalRequests []*AccessApprovalRequest `json:"accessApprovalRequests,omitempty"`// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccessApprovalRequests") 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. "AccessApprovalRequests") 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:"-"`}ListAccessApprovalRequestsResponse: Response message for list accessrequests.
func (ListAccessApprovalRequestsResponse)MarshalJSON¶
func (sListAccessApprovalRequestsResponse) MarshalJSON() ([]byte,error)
typeListCustomersResponse¶
type ListCustomersResponse struct {// Customers: List of customersCustomers []*Customer `json:"customers,omitempty"`// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Customers") 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. "Customers") 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:"-"`}ListCustomersResponse: Response message for list customer Customers requests
func (ListCustomersResponse)MarshalJSON¶
func (sListCustomersResponse) MarshalJSON() ([]byte,error)
typeListViolationsResponse¶
type ListViolationsResponse struct {// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Workloads that could not be reached due to permission errors or// any other error. Ref:https://google.aip.dev/217Unreachable []string `json:"unreachable,omitempty"`// Violations: List of violationViolations []*Violation `json:"violations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`}ListViolationsResponse: Response message for list customer violationrequests
func (ListViolationsResponse)MarshalJSON¶
func (sListViolationsResponse) MarshalJSON() ([]byte,error)
typeListWorkloadsResponse¶
type ListWorkloadsResponse struct {// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// Unreachable: Locations that could not be reached.Unreachable []string `json:"unreachable,omitempty"`// Workloads: List of customer workloadsWorkloads []*Workload `json:"workloads,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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:"-"`}ListWorkloadsResponse: Response message for list customer workloadsrequests.
func (ListWorkloadsResponse)MarshalJSON¶
func (sListWorkloadsResponse) MarshalJSON() ([]byte,error)
typeOperationMetadata¶
type OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// RequestedCancellation: Output only. Identifies whether the user has// requested cancellation of the operation. Operations that have been cancelled// successfully have Operation.error value with a google.rpc.Status.code of 1,// corresponding to `Code.CANCELLED`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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:"-"`}OperationMetadata: Represents the metadata of the long-running operation.
func (OperationMetadata)MarshalJSON¶
func (sOperationMetadata) MarshalJSON() ([]byte,error)
typeOrganizationsLocationsCustomersCreateCall¶added inv0.204.0
type OrganizationsLocationsCustomersCreateCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersCreateCall)Context¶added inv0.204.0
func (c *OrganizationsLocationsCustomersCreateCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersCreateCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersCreateCall)CustomerId¶added inv0.204.0
func (c *OrganizationsLocationsCustomersCreateCall) CustomerId(customerIdstring) *OrganizationsLocationsCustomersCreateCall
CustomerId sets the optional parameter "customerId": Required. The customerid to use for the customer, which will become the final component of thecustomer's resource name. The specified value must be a valid Google cloudorganization id.
func (*OrganizationsLocationsCustomersCreateCall)Do¶added inv0.204.0
func (c *OrganizationsLocationsCustomersCreateCall) Do(opts ...googleapi.CallOption) (*Customer,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.create" call.Any non-2xx status code is an error. Response headers are in either*Customer.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 (*OrganizationsLocationsCustomersCreateCall)Fields¶added inv0.204.0
func (c *OrganizationsLocationsCustomersCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersCreateCall)Header¶added inv0.204.0
func (c *OrganizationsLocationsCustomersCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsCustomersDeleteCall¶added inv0.204.0
type OrganizationsLocationsCustomersDeleteCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersDeleteCall)Context¶added inv0.204.0
func (c *OrganizationsLocationsCustomersDeleteCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersDeleteCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersDeleteCall)Do¶added inv0.204.0
func (c *OrganizationsLocationsCustomersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.delete" 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 (*OrganizationsLocationsCustomersDeleteCall)Fields¶added inv0.204.0
func (c *OrganizationsLocationsCustomersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersDeleteCall)Header¶added inv0.204.0
func (c *OrganizationsLocationsCustomersDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsCustomersGetCall¶
type OrganizationsLocationsCustomersGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersGetCall)Context¶
func (c *OrganizationsLocationsCustomersGetCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersGetCall)Do¶
func (c *OrganizationsLocationsCustomersGetCall) Do(opts ...googleapi.CallOption) (*Customer,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.get" call.Any non-2xx status code is an error. Response headers are in either*Customer.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 (*OrganizationsLocationsCustomersGetCall)Fields¶
func (c *OrganizationsLocationsCustomersGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersGetCall)Header¶
func (c *OrganizationsLocationsCustomersGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersGetCall
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.
typeOrganizationsLocationsCustomersListCall¶
type OrganizationsLocationsCustomersListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersListCall)Context¶
func (c *OrganizationsLocationsCustomersListCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersListCall)Do¶
func (c *OrganizationsLocationsCustomersListCall) Do(opts ...googleapi.CallOption) (*ListCustomersResponse,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.list" call.Any non-2xx status code is an error. Response headers are in either*ListCustomersResponse.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 (*OrganizationsLocationsCustomersListCall)Fields¶
func (c *OrganizationsLocationsCustomersListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersListCall)Filter¶
func (c *OrganizationsLocationsCustomersListCall) Filter(filterstring) *OrganizationsLocationsCustomersListCall
Filter sets the optional parameter "filter": Filtering results
func (*OrganizationsLocationsCustomersListCall)Header¶
func (c *OrganizationsLocationsCustomersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersListCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersListCall
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 (*OrganizationsLocationsCustomersListCall)OrderBy¶
func (c *OrganizationsLocationsCustomersListCall) OrderBy(orderBystring) *OrganizationsLocationsCustomersListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults
func (*OrganizationsLocationsCustomersListCall)PageSize¶
func (c *OrganizationsLocationsCustomersListCall) PageSize(pageSizeint64) *OrganizationsLocationsCustomersListCall
PageSize sets the optional parameter "pageSize": The maximum number ofCustomers to return. The service may return fewer than this value. Ifunspecified, at most 500 Customers will be returned.
func (*OrganizationsLocationsCustomersListCall)PageToken¶
func (c *OrganizationsLocationsCustomersListCall) PageToken(pageTokenstring) *OrganizationsLocationsCustomersListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListCustomers` call. Provide this to retrieve thesubsequent page.
func (*OrganizationsLocationsCustomersListCall)Pages¶
func (c *OrganizationsLocationsCustomersListCall) Pages(ctxcontext.Context, f func(*ListCustomersResponse)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.
typeOrganizationsLocationsCustomersPatchCall¶added inv0.204.0
type OrganizationsLocationsCustomersPatchCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersPatchCall)Context¶added inv0.204.0
func (c *OrganizationsLocationsCustomersPatchCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersPatchCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersPatchCall)Do¶added inv0.204.0
func (c *OrganizationsLocationsCustomersPatchCall) Do(opts ...googleapi.CallOption) (*Customer,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.patch" call.Any non-2xx status code is an error. Response headers are in either*Customer.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 (*OrganizationsLocationsCustomersPatchCall)Fields¶added inv0.204.0
func (c *OrganizationsLocationsCustomersPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersPatchCall)Header¶added inv0.204.0
func (c *OrganizationsLocationsCustomersPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersPatchCall)UpdateMask¶added inv0.204.0
func (c *OrganizationsLocationsCustomersPatchCall) UpdateMask(updateMaskstring) *OrganizationsLocationsCustomersPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields toupdate
typeOrganizationsLocationsCustomersService¶
type OrganizationsLocationsCustomersService struct {Workloads *OrganizationsLocationsCustomersWorkloadsService// contains filtered or unexported fields}funcNewOrganizationsLocationsCustomersService¶
func NewOrganizationsLocationsCustomersService(s *Service) *OrganizationsLocationsCustomersService
func (*OrganizationsLocationsCustomersService)Create¶added inv0.204.0
func (r *OrganizationsLocationsCustomersService) Create(parentstring, customer *Customer) *OrganizationsLocationsCustomersCreateCall
Create: Creates a new customer.
- parent: Parent resource Format:`organizations/{organization}/locations/{location}`.
func (*OrganizationsLocationsCustomersService)Delete¶added inv0.204.0
func (r *OrganizationsLocationsCustomersService) Delete(namestring) *OrganizationsLocationsCustomersDeleteCall
Delete: Delete details of a single customer
- name: name of the resource to be deleted format:name=organizations/*/locations/*/customers/*.
func (*OrganizationsLocationsCustomersService)Get¶
func (r *OrganizationsLocationsCustomersService) Get(namestring) *OrganizationsLocationsCustomersGetCall
Get: Gets details of a single customer
- name: Format:`organizations/{organization}/locations/{location}/customers/{customer}`.
func (*OrganizationsLocationsCustomersService)List¶
func (r *OrganizationsLocationsCustomersService) List(parentstring) *OrganizationsLocationsCustomersListCall
List: Lists customers of a partner identified by its Google Cloudorganization ID
- parent: Parent resource Format:`organizations/{organization}/locations/{location}`.
func (*OrganizationsLocationsCustomersService)Patch¶added inv0.204.0
func (r *OrganizationsLocationsCustomersService) Patch(namestring, customer *Customer) *OrganizationsLocationsCustomersPatchCall
Patch: Update details of a single customer
- name: Identifier. Format:`organizations/{organization}/locations/{location}/customers/{customer}`.
typeOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall¶
type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Do(opts ...googleapi.CallOption) (*ListAccessApprovalRequestsResponse,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.accessApprovalRequests.list" call.Any non-2xx status code is an error. Response headers are in either*ListAccessApprovalRequestsResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Filter¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Filter(filterstring) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
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 (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)OrderBy¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) OrderBy(orderBystring) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)PageSize¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageSize(pageSizeint64) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofaccess requests to return. The service may return fewer than this value. Ifunspecified, at most 500 access requests will be returned.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)PageToken¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) PageToken(pageTokenstring) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListAccessApprovalRequests` call. Provide this to retrievethe subsequent page.
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Pages¶
func (c *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall) Pages(ctxcontext.Context, f func(*ListAccessApprovalRequestsResponse)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.
typeOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService¶
type OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService¶
func NewOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService(s *Service) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService
func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService)List¶
func (r *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService) List(parentstring) *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall
List: Deprecated: Only returns access approval requests directly associatedwith an assured workload folder.
- parent: Parent resource Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`.
typeOrganizationsLocationsCustomersWorkloadsGetCall¶
type OrganizationsLocationsCustomersWorkloadsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsGetCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsGetCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*Workload,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.get" call.Any non-2xx status code is an error. Response headers are in either*Workload.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 (*OrganizationsLocationsCustomersWorkloadsGetCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsGetCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsGetCall
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.
typeOrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall¶
type OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Do(opts ...googleapi.CallOption) (*EkmConnections,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getEkmConnections" call.Any non-2xx status code is an error. Response headers are in either*EkmConnections.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
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.
typeOrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall¶
type OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Do(opts ...googleapi.CallOption) (*PartnerPermissions,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.getPartnerPermissions" call.Any non-2xx status code is an error. Response headers are in either*PartnerPermissions.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 (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
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.
typeOrganizationsLocationsCustomersWorkloadsListCall¶
type OrganizationsLocationsCustomersWorkloadsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsListCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsListCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Do(opts ...googleapi.CallOption) (*ListWorkloadsResponse,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.list" call.Any non-2xx status code is an error. Response headers are in either*ListWorkloadsResponse.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 (*OrganizationsLocationsCustomersWorkloadsListCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsListCall)Filter¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Filter(filterstring) *OrganizationsLocationsCustomersWorkloadsListCall
Filter sets the optional parameter "filter": Filtering results.
func (*OrganizationsLocationsCustomersWorkloadsListCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsListCall
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 (*OrganizationsLocationsCustomersWorkloadsListCall)OrderBy¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) OrderBy(orderBystring) *OrganizationsLocationsCustomersWorkloadsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults.
func (*OrganizationsLocationsCustomersWorkloadsListCall)PageSize¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageSize(pageSizeint64) *OrganizationsLocationsCustomersWorkloadsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofworkloads to return. The service may return fewer than this value. Ifunspecified, at most 500 workloads will be returned.
func (*OrganizationsLocationsCustomersWorkloadsListCall)PageToken¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) PageToken(pageTokenstring) *OrganizationsLocationsCustomersWorkloadsListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListWorkloads` call. Provide this to retrieve thesubsequent page.
func (*OrganizationsLocationsCustomersWorkloadsListCall)Pages¶
func (c *OrganizationsLocationsCustomersWorkloadsListCall) Pages(ctxcontext.Context, f func(*ListWorkloadsResponse)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.
typeOrganizationsLocationsCustomersWorkloadsService¶
type OrganizationsLocationsCustomersWorkloadsService struct {AccessApprovalRequests *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsServiceViolations *OrganizationsLocationsCustomersWorkloadsViolationsService// contains filtered or unexported fields}funcNewOrganizationsLocationsCustomersWorkloadsService¶
func NewOrganizationsLocationsCustomersWorkloadsService(s *Service) *OrganizationsLocationsCustomersWorkloadsService
func (*OrganizationsLocationsCustomersWorkloadsService)Get¶
func (r *OrganizationsLocationsCustomersWorkloadsService) Get(namestring) *OrganizationsLocationsCustomersWorkloadsGetCall
Get: Gets details of a single workload
- name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`.
func (*OrganizationsLocationsCustomersWorkloadsService)GetEkmConnections¶
func (r *OrganizationsLocationsCustomersWorkloadsService) GetEkmConnections(namestring) *OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall
GetEkmConnections: Gets the EKM connections associated with a workload
- name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`.
func (*OrganizationsLocationsCustomersWorkloadsService)GetPartnerPermissions¶
func (r *OrganizationsLocationsCustomersWorkloadsService) GetPartnerPermissions(namestring) *OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall
GetPartnerPermissions: Gets the partner permissions granted for a workload
- name: Name of the resource to get in the format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`.
func (*OrganizationsLocationsCustomersWorkloadsService)List¶
func (r *OrganizationsLocationsCustomersWorkloadsService) List(parentstring) *OrganizationsLocationsCustomersWorkloadsListCall
List: Lists customer workloads for a given customer org id
- parent: Parent resource Format:`organizations/{organization}/locations/{location}/customers/{customer}`.
typeOrganizationsLocationsCustomersWorkloadsViolationsGetCall¶
type OrganizationsLocationsCustomersWorkloadsViolationsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Do(opts ...googleapi.CallOption) (*Violation,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.get" call.Any non-2xx status code is an error. Response headers are in either*Violation.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 (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
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.
typeOrganizationsLocationsCustomersWorkloadsViolationsListCall¶
type OrganizationsLocationsCustomersWorkloadsViolationsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Context¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Context(ctxcontext.Context) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Do¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Do(opts ...googleapi.CallOption) (*ListViolationsResponse,error)
Do executes the "cloudcontrolspartner.organizations.locations.customers.workloads.violations.list" call.Any non-2xx status code is an error. Response headers are in either*ListViolationsResponse.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 (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Fields¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Filter¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Filter(filterstring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
Filter sets the optional parameter "filter": Filtering results
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Header¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
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 (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)IntervalEndTime¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalEndTime(intervalEndTimestring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
IntervalEndTime sets the optional parameter "interval.endTime": Exclusiveend of the interval. If specified, a Timestamp matching this interval willhave to be before the end.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)IntervalStartTime¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) IntervalStartTime(intervalStartTimestring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
IntervalStartTime sets the optional parameter "interval.startTime":Inclusive start of the interval. If specified, a Timestamp matching thisinterval will have to be the same or after the start.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)OrderBy¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) OrderBy(orderBystring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)PageSize¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageSize(pageSizeint64) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofcustomers row to return. The service may return fewer than this value. Ifunspecified, at most 10 customers will be returned.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)PageToken¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) PageToken(pageTokenstring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListViolations` call. Provide this to retrieve thesubsequent page.
func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Pages¶
func (c *OrganizationsLocationsCustomersWorkloadsViolationsListCall) Pages(ctxcontext.Context, f func(*ListViolationsResponse)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.
typeOrganizationsLocationsCustomersWorkloadsViolationsService¶
type OrganizationsLocationsCustomersWorkloadsViolationsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsCustomersWorkloadsViolationsService¶
func NewOrganizationsLocationsCustomersWorkloadsViolationsService(s *Service) *OrganizationsLocationsCustomersWorkloadsViolationsService
func (*OrganizationsLocationsCustomersWorkloadsViolationsService)Get¶
func (r *OrganizationsLocationsCustomersWorkloadsViolationsService) Get(namestring) *OrganizationsLocationsCustomersWorkloadsViolationsGetCall
Get: Gets details of a single Violation.
- name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`.
func (*OrganizationsLocationsCustomersWorkloadsViolationsService)List¶
func (r *OrganizationsLocationsCustomersWorkloadsViolationsService) List(parentstring) *OrganizationsLocationsCustomersWorkloadsViolationsListCall
List: Lists Violations for a workload Callers may also choose to read acrossmultiple Customers or for a single customer as per AIP-159(https://google.aip.dev/159) by using '-' (the hyphen or dash character) asa wildcard character instead of {customer} & {workload}. Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
- parent: Parent resource Format`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`.
typeOrganizationsLocationsGetPartnerCall¶
type OrganizationsLocationsGetPartnerCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGetPartnerCall)Context¶
func (c *OrganizationsLocationsGetPartnerCall) Context(ctxcontext.Context) *OrganizationsLocationsGetPartnerCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGetPartnerCall)Do¶
func (c *OrganizationsLocationsGetPartnerCall) Do(opts ...googleapi.CallOption) (*Partner,error)
Do executes the "cloudcontrolspartner.organizations.locations.getPartner" call.Any non-2xx status code is an error. Response headers are in either*Partner.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 (*OrganizationsLocationsGetPartnerCall)Fields¶
func (c *OrganizationsLocationsGetPartnerCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGetPartnerCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGetPartnerCall)Header¶
func (c *OrganizationsLocationsGetPartnerCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGetPartnerCall)IfNoneMatch¶
func (c *OrganizationsLocationsGetPartnerCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsGetPartnerCall
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.
typeOrganizationsLocationsService¶
type OrganizationsLocationsService struct {Customers *OrganizationsLocationsCustomersService// contains filtered or unexported fields}funcNewOrganizationsLocationsService¶
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
func (*OrganizationsLocationsService)GetPartner¶
func (r *OrganizationsLocationsService) GetPartner(namestring) *OrganizationsLocationsGetPartnerCall
GetPartner: Get details of a Partner.
- name: Format: `organizations/{organization}/locations/{location}/partner`.
typeOrganizationsService¶
type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}funcNewOrganizationsService¶
func NewOrganizationsService(s *Service) *OrganizationsService
typePartner¶
type Partner struct {// CreateTime: Output only. Time the resource was createdCreateTimestring `json:"createTime,omitempty"`// EkmSolutions: List of Google Cloud supported EKM partners supported by the// partnerEkmSolutions []*EkmMetadata `json:"ekmSolutions,omitempty"`// Name: Identifier. The resource name of the partner. Format:// `organizations/{organization}/locations/{location}/partner` Example:// "organizations/123456/locations/us-central1/partner"Namestring `json:"name,omitempty"`// OperatedCloudRegions: List of Google Cloud regions that the partner sells// services to customers. Valid Google Cloud regions found here://https://cloud.google.com/compute/docs/regions-zonesOperatedCloudRegions []string `json:"operatedCloudRegions,omitempty"`// PartnerProjectId: Google Cloud project ID in the partner's Google Cloud// organization for receiving enhanced Logs for Partners.PartnerProjectIdstring `json:"partnerProjectId,omitempty"`// Skus: List of SKUs the partner is offeringSkus []*Sku `json:"skus,omitempty"`// UpdateTime: Output only. The last time the resource was updatedUpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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:"-"`}Partner: Message describing Partner resource
func (Partner)MarshalJSON¶
typePartnerPermissions¶
type PartnerPermissions struct {// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}/workl// oads/{workload}/partnerPermissions`Namestring `json:"name,omitempty"`// PartnerPermissions: The partner permissions granted for the workload//// Possible values:// "PERMISSION_UNSPECIFIED" - Unspecified partner permission// "ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS" - Permission for Access// Transparency and emergency logs// "ASSURED_WORKLOADS_MONITORING" - Permission for Assured Workloads// monitoring violations// "ACCESS_APPROVAL_REQUESTS" - Permission for Access Approval requests// "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS" - Permission for External Key// Manager connection status// "ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER" - Permission for support// case details for Access Transparency log entriesPartnerPermissions []string `json:"partnerPermissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}PartnerPermissions: The permissions granted to the partner for a workload
func (PartnerPermissions)MarshalJSON¶
func (sPartnerPermissions) MarshalJSON() ([]byte,error)
typeRemediation¶
type Remediation struct {// CompliantValues: Values that can resolve the violation For example: for list// org policy violations, this will either be the list of allowed or denied// valuesCompliantValues []string `json:"compliantValues,omitempty"`// Instructions: Required. Remediation instructions to resolve violationsInstructions *Instructions `json:"instructions,omitempty"`// RemediationType: Output only. Remediation type based on the type of org// policy values violated//// Possible values:// "REMEDIATION_TYPE_UNSPECIFIED" - Unspecified remediation type// "REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION" - Remediation type for boolean// org policy// "REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION" - Remediation type// for list org policy which have allowed values in the monitoring rule// "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION" - Remediation type// for list org policy which have denied values in the monitoring rule// "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION" -// Remediation type for gcp.restrictCmekCryptoKeyProjects// "REMEDIATION_RESOURCE_VIOLATION" - Remediation type for resource// violation.RemediationTypestring `json:"remediationType,omitempty"`// ForceSendFields is a list of field names (e.g. "CompliantValues") 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. "CompliantValues") 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:"-"`}Remediation: Represents remediation guidance to resolve compliance violationfor AssuredWorkload
func (Remediation)MarshalJSON¶
func (sRemediation) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentOrganizations *OrganizationsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeSku¶
type Sku struct {// DisplayName: Display name of the product identified by the SKU. A partner// may want to show partner branded names for their offerings such as local// sovereign cloud solutions.DisplayNamestring `json:"displayName,omitempty"`// Id: Argentum product SKU, that is associated with the partner offerings to// customers used by Syntro for billing purposes. SKUs can represent resold// Google products or support services.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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:"-"`}Sku: Represents the SKU a partner owns inside Google Cloud to sell tocustomers.
func (Sku)MarshalJSON¶
typeViolation¶
type Violation struct {// BeginTime: Output only. Time of the event which triggered the Violation.BeginTimestring `json:"beginTime,omitempty"`// Category: Output only. Category under which this violation is mapped. e.g.// Location, Service Usage, Access, Encryption, etc.Categorystring `json:"category,omitempty"`// Description: Output only. Description for the Violation. e.g. OrgPolicy// gcp.resourceLocations has non compliant value.Descriptionstring `json:"description,omitempty"`// FolderId: The folder_id of the violationFolderIdint64 `json:"folderId,omitempty,string"`// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}/workl// oads/{workload}/violations/{violation}`Namestring `json:"name,omitempty"`// NonCompliantOrgPolicy: Output only. Immutable. Name of the OrgPolicy which// was modified with non-compliant change and resulted this violation. Format:// `projects/{project_number}/policies/{constraint_name}`// `folders/{folder_id}/policies/{constraint_name}`// `organizations/{organization_id}/policies/{constraint_name}`NonCompliantOrgPolicystring `json:"nonCompliantOrgPolicy,omitempty"`// Remediation: Output only. Compliance violation remediationRemediation *Remediation `json:"remediation,omitempty"`// ResolveTime: Output only. Time of the event which fixed the Violation. If// the violation is ACTIVE this will be empty.ResolveTimestring `json:"resolveTime,omitempty"`// State: Output only. State of the violation//// Possible values:// "STATE_UNSPECIFIED" - Unspecified state.// "RESOLVED" - Violation is resolved.// "UNRESOLVED" - Violation is Unresolved// "EXCEPTION" - Violation is ExceptionStatestring `json:"state,omitempty"`// UpdateTime: Output only. The last time when the Violation record was// updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BeginTime") 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. "BeginTime") 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:"-"`}Violation: Details of resource Violation
func (Violation)MarshalJSON¶
typeWorkload¶
type Workload struct {// CreateTime: Output only. Time the resource was created.CreateTimestring `json:"createTime,omitempty"`// Folder: Output only. The name of container folder of the assured workloadFolderstring `json:"folder,omitempty"`// FolderId: Output only. Folder id this workload is associated withFolderIdint64 `json:"folderId,omitempty,string"`// IsOnboarded: Indicates whether a workload is fully onboarded.IsOnboardedbool `json:"isOnboarded,omitempty"`// KeyManagementProjectId: The project id of the key management project for the// workloadKeyManagementProjectIdstring `json:"keyManagementProjectId,omitempty"`// Location: The Google Cloud location of the workloadLocationstring `json:"location,omitempty"`// Name: Identifier. Format:// `organizations/{organization}/locations/{location}/customers/{customer}/workl// oads/{workload}`Namestring `json:"name,omitempty"`// Partner: Partner associated with this workload.//// Possible values:// "PARTNER_UNSPECIFIED" - Unknown Partner.// "PARTNER_LOCAL_CONTROLS_BY_S3NS" - Enum representing S3NS (Thales)// partner.// "PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS" - Enum representing T_SYSTEM// (TSI) partner.// "PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT" - Enum representing// SIA_MINSAIT (Indra) partner.// "PARTNER_SOVEREIGN_CONTROLS_BY_PSN" - Enum representing PSN (TIM) partner.// "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT" - Enum representing CNTXT (Kingdom// of Saudi Arabia) partner.// "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM" - Enum representing CNXT// (Kingdom of Saudi Arabia) partner offering without EKM provisioning.Partnerstring `json:"partner,omitempty"`// WorkloadOnboardingState: Container for workload onboarding steps.WorkloadOnboardingState *WorkloadOnboardingState `json:"workloadOnboardingState,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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:"-"`}Workload: Contains metadata around the Workload resource(https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload)in the Assured Workloads API.
func (Workload)MarshalJSON¶
typeWorkloadOnboardingState¶
type WorkloadOnboardingState struct {// OnboardingSteps: List of workload onboarding steps.OnboardingSteps []*WorkloadOnboardingStep `json:"onboardingSteps,omitempty"`// ForceSendFields is a list of field names (e.g. "OnboardingSteps") 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. "OnboardingSteps") 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:"-"`}WorkloadOnboardingState: Container for workload onboarding steps.
func (WorkloadOnboardingState)MarshalJSON¶
func (sWorkloadOnboardingState) MarshalJSON() ([]byte,error)
typeWorkloadOnboardingStep¶
type WorkloadOnboardingStep struct {// CompletionState: Output only. The completion state of the onboarding step.//// Possible values:// "COMPLETION_STATE_UNSPECIFIED" - Unspecified completion state.// "PENDING" - Task started (has start date) but not yet completed.// "SUCCEEDED" - Succeeded state.// "FAILED" - Failed state.// "NOT_APPLICABLE" - Not applicable state.CompletionStatestring `json:"completionState,omitempty"`// CompletionTime: The completion time of the onboarding step.CompletionTimestring `json:"completionTime,omitempty"`// StartTime: The starting time of the onboarding step.StartTimestring `json:"startTime,omitempty"`// Step: The onboarding step.//// Possible values:// "STEP_UNSPECIFIED" - Unspecified step.// "EKM_PROVISIONED" - EKM Provisioned step.// "SIGNED_ACCESS_APPROVAL_CONFIGURED" - Signed Access Approval step.Stepstring `json:"step,omitempty"`// ForceSendFields is a list of field names (e.g. "CompletionState") 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. "CompletionState") 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:"-"`}WorkloadOnboardingStep: Container for workload onboarding information.
func (WorkloadOnboardingStep)MarshalJSON¶
func (sWorkloadOnboardingStep) MarshalJSON() ([]byte,error)