Movatterモバイル変換


[0]ホーム

URL:


cloudcontrolspartner

package
v0.257.0Latest Latest
Warning

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

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

Details

Repository

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

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

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

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

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

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

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)

typeEmptyadded 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

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

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

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)

typeOrganizationsLocationsCustomersCreateCalladded inv0.204.0

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

func (*OrganizationsLocationsCustomersCreateCall)Contextadded inv0.204.0

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

func (*OrganizationsLocationsCustomersCreateCall)CustomerIdadded inv0.204.0

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)Doadded inv0.204.0

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)Fieldsadded inv0.204.0

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

func (*OrganizationsLocationsCustomersCreateCall)Headeradded inv0.204.0

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

typeOrganizationsLocationsCustomersDeleteCalladded inv0.204.0

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

func (*OrganizationsLocationsCustomersDeleteCall)Contextadded inv0.204.0

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

func (*OrganizationsLocationsCustomersDeleteCall)Doadded inv0.204.0

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)Fieldsadded inv0.204.0

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

func (*OrganizationsLocationsCustomersDeleteCall)Headeradded inv0.204.0

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

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

func (*OrganizationsLocationsCustomersGetCall)Do

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

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

func (*OrganizationsLocationsCustomersGetCall)Header

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

func (*OrganizationsLocationsCustomersGetCall)IfNoneMatch

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

typeOrganizationsLocationsCustomersListCall

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

func (*OrganizationsLocationsCustomersListCall)Context

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

func (*OrganizationsLocationsCustomersListCall)Do

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

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

func (*OrganizationsLocationsCustomersListCall)Filter

Filter sets the optional parameter "filter": Filtering results

func (*OrganizationsLocationsCustomersListCall)Header

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

func (*OrganizationsLocationsCustomersListCall)IfNoneMatch

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

func (*OrganizationsLocationsCustomersListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order theresults

func (*OrganizationsLocationsCustomersListCall)PageSize

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

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListCustomers` call. Provide this to retrieve thesubsequent page.

func (*OrganizationsLocationsCustomersListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsCustomersPatchCalladded inv0.204.0

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

func (*OrganizationsLocationsCustomersPatchCall)Contextadded inv0.204.0

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

func (*OrganizationsLocationsCustomersPatchCall)Doadded inv0.204.0

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)Fieldsadded inv0.204.0

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

func (*OrganizationsLocationsCustomersPatchCall)Headeradded inv0.204.0

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

func (*OrganizationsLocationsCustomersPatchCall)UpdateMaskadded inv0.204.0

UpdateMask sets the optional parameter "updateMask": The list of fields toupdate

typeOrganizationsLocationsCustomersService

type OrganizationsLocationsCustomersService struct {Workloads *OrganizationsLocationsCustomersWorkloadsService// contains filtered or unexported fields}

func (*OrganizationsLocationsCustomersService)Createadded inv0.204.0

Create: Creates a new customer.

  • parent: Parent resource Format:`organizations/{organization}/locations/{location}`.

func (*OrganizationsLocationsCustomersService)Deleteadded inv0.204.0

Delete: Delete details of a single customer

  • name: name of the resource to be deleted format:name=organizations/*/locations/*/customers/*.

func (*OrganizationsLocationsCustomersService)Get

Get: Gets details of a single customer

  • name: Format:`organizations/{organization}/locations/{location}/customers/{customer}`.

func (*OrganizationsLocationsCustomersService)List

List: Lists customers of a partner identified by its Google Cloudorganization ID

  • parent: Parent resource Format:`organizations/{organization}/locations/{location}`.

func (*OrganizationsLocationsCustomersService)Patchadded inv0.204.0

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

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

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Filter

Filter sets the optional parameter "filter": Filtering results.

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)IfNoneMatch

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

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order theresults.

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)PageSize

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

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListAccessApprovalRequests` call. Provide this to retrievethe subsequent page.

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService

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

func (*OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsService)List

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

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

func (*OrganizationsLocationsCustomersWorkloadsGetCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsGetCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsGetCall)IfNoneMatch

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

typeOrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall

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

func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Context

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

func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsGetEkmConnectionsCall)IfNoneMatch

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

typeOrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall

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

func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Context

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

func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsGetPartnerPermissionsCall)IfNoneMatch

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

typeOrganizationsLocationsCustomersWorkloadsListCall

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

func (*OrganizationsLocationsCustomersWorkloadsListCall)Context

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

func (*OrganizationsLocationsCustomersWorkloadsListCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsListCall)Filter

Filter sets the optional parameter "filter": Filtering results.

func (*OrganizationsLocationsCustomersWorkloadsListCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsListCall)IfNoneMatch

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

func (*OrganizationsLocationsCustomersWorkloadsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Hint for how to order theresults.

func (*OrganizationsLocationsCustomersWorkloadsListCall)PageSize

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

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListWorkloads` call. Provide this to retrieve thesubsequent page.

func (*OrganizationsLocationsCustomersWorkloadsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsCustomersWorkloadsService

type OrganizationsLocationsCustomersWorkloadsService struct {AccessApprovalRequests *OrganizationsLocationsCustomersWorkloadsAccessApprovalRequestsServiceViolations *OrganizationsLocationsCustomersWorkloadsViolationsService// contains filtered or unexported fields}

func (*OrganizationsLocationsCustomersWorkloadsService)Get

Get: Gets details of a single workload

  • name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`.

func (*OrganizationsLocationsCustomersWorkloadsService)GetEkmConnections

GetEkmConnections: Gets the EKM connections associated with a workload

  • name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`.

func (*OrganizationsLocationsCustomersWorkloadsService)GetPartnerPermissions

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

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

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsGetCall)IfNoneMatch

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

typeOrganizationsLocationsCustomersWorkloadsViolationsListCall

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Context

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Do

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

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Filter

Filter sets the optional parameter "filter": Filtering results

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Header

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)IfNoneMatch

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)IntervalEndTime

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

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

OrderBy sets the optional parameter "orderBy": Hint for how to order theresults

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)PageSize

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

PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListViolations` call. Provide this to retrieve thesubsequent page.

func (*OrganizationsLocationsCustomersWorkloadsViolationsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeOrganizationsLocationsCustomersWorkloadsViolationsService

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

func (*OrganizationsLocationsCustomersWorkloadsViolationsService)Get

Get: Gets details of a single Violation.

  • name: Format:`organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`.

func (*OrganizationsLocationsCustomersWorkloadsViolationsService)List

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

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

func (*OrganizationsLocationsGetPartnerCall)Do

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

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

func (*OrganizationsLocationsGetPartnerCall)Header

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

func (*OrganizationsLocationsGetPartnerCall)IfNoneMatch

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

typeOrganizationsLocationsService

type OrganizationsLocationsService struct {Customers *OrganizationsLocationsCustomersService// contains filtered or unexported fields}

funcNewOrganizationsLocationsService

func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService

func (*OrganizationsLocationsService)GetPartner

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

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

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

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

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

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

funcNewService

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

NewService creates a new Service.

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

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

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

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

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

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

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)

Source Files

View all Source files

Jump to

Keyboard shortcuts

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

[8]ページ先頭

©2009-2025 Movatter.jp