Documentation ¶
Overview ¶
Package privateca provides access to the Certificate Authority API.
For product documentation, see: https://cloud.google.com/
Creating a client ¶
Usage example:
import "google.golang.org/api/privateca/v1beta1" ... ctx := context.Background() privatecaService, err := privateca.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
privatecaService, err := privateca.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) privatecaService, err := privateca.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type AccessUrls
- type ActivateCertificateAuthorityRequest
- type AllowedConfigList
- type AllowedSubjectAltNames
- type AuditConfig
- type AuditLogConfig
- type Binding
- type CaOptions
- type CancelOperationRequest
- type Certificate
- type CertificateAuthority
- type CertificateAuthorityPolicy
- type CertificateConfig
- type CertificateDescription
- type CertificateFingerprint
- type CertificateRevocationList
- type DisableCertificateAuthorityRequest
- type Empty
- type EnableCertificateAuthorityRequest
- type Expr
- type ExtendedKeyUsageOptions
- type FetchCertificateAuthorityCsrResponse
- type IssuanceModes
- type IssuingOptions
- type KeyId
- type KeyUsage
- type KeyUsageOptions
- type KeyVersionSpec
- type ListCertificateAuthoritiesResponse
- type ListCertificateRevocationListsResponse
- type ListCertificatesResponse
- type ListLocationsResponse
- type ListOperationsResponse
- type ListReusableConfigsResponse
- type Location
- type ObjectId
- type Operation
- type OperationMetadata
- type Policy
- type ProjectsLocationsCertificateAuthoritiesActivateCall
- func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesActivateCall
- func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesActivateCall
- func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Do(opts ...googleapi.CallOption) (*CertificateRevocationList, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch(entityTag string) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) ...
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Do(opts ...googleapi.CallOption) (*ListCertificateRevocationListsResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Pages(ctx context.Context, f func(*ListCertificateRevocationListsResponse) error) error
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy(resource string) ...
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Patch(name string, certificaterevocationlist *CertificateRevocationList) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) ...
- func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) ...
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context(ctx context.Context) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields(s ...googleapi.Field) ...
- func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) CertificateId(certificateId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- type ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
- type ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListCertificatesResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Pages(ctx context.Context, f func(*ListCertificatesResponse) error) error
- type ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- type ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
- func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesCertificatesService
- func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Create(parent string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Patch(name string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
- func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Revoke(name string, revokecertificaterequest *RevokeCertificateRequest) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
- type ProjectsLocationsCertificateAuthoritiesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) CertificateAuthorityId(certificateAuthorityId string) *ProjectsLocationsCertificateAuthoritiesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCreateCall
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCreateCall
- type ProjectsLocationsCertificateAuthoritiesDisableCall
- func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesDisableCall
- func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesDisableCall
- func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesEnableCall
- func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesEnableCall
- func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesEnableCall
- func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesFetchCall
- func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesFetchCall
- func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Do(opts ...googleapi.CallOption) (*FetchCertificateAuthorityCsrResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesFetchCall
- func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesFetchCall
- type ProjectsLocationsCertificateAuthoritiesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Do(opts ...googleapi.CallOption) (*CertificateAuthority, error)
- func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetCall
- type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- type ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Do(opts ...googleapi.CallOption) (*ListCertificateAuthoritiesResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesListCall
- func (c *ProjectsLocationsCertificateAuthoritiesListCall) Pages(ctx context.Context, f func(*ListCertificateAuthoritiesResponse) error) error
- type ProjectsLocationsCertificateAuthoritiesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Header() http.Header
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesPatchCall
- func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesPatchCall
- type ProjectsLocationsCertificateAuthoritiesRestoreCall
- func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesRestoreCall
- func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesRestoreCall
- func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
- func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
- func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
- func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesService
- func (r *ProjectsLocationsCertificateAuthoritiesService) Activate(name string, ...) *ProjectsLocationsCertificateAuthoritiesActivateCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Create(parent string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesCreateCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Disable(name string, ...) *ProjectsLocationsCertificateAuthoritiesDisableCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Enable(name string, ...) *ProjectsLocationsCertificateAuthoritiesEnableCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Fetch(name string) *ProjectsLocationsCertificateAuthoritiesFetchCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesGetCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesListCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Patch(name string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesPatchCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) Restore(name string, ...) *ProjectsLocationsCertificateAuthoritiesRestoreCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) ScheduleDelete(name string, ...) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
- func (r *ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
- type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
- func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
- func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
- func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
- func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
- func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
- func (c *ProjectsLocationsGetCall) Header() http.Header
- func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
- type ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
- func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Header() http.Header
- func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
- func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsReusableConfigsGetCall
- func (c *ProjectsLocationsReusableConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetCall
- func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReusableConfig, error)
- func (c *ProjectsLocationsReusableConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetCall
- func (c *ProjectsLocationsReusableConfigsGetCall) Header() http.Header
- func (c *ProjectsLocationsReusableConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetCall
- type ProjectsLocationsReusableConfigsGetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Header() http.Header
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsReusableConfigsGetIamPolicyCall
- type ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReusableConfigsResponse, error)
- func (c *ProjectsLocationsReusableConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) Filter(filter string) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) Header() http.Header
- func (c *ProjectsLocationsReusableConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReusableConfigsListCall
- func (c *ProjectsLocationsReusableConfigsListCall) Pages(ctx context.Context, f func(*ListReusableConfigsResponse) error) error
- type ProjectsLocationsReusableConfigsService
- func (r *ProjectsLocationsReusableConfigsService) Get(name string) *ProjectsLocationsReusableConfigsGetCall
- func (r *ProjectsLocationsReusableConfigsService) GetIamPolicy(resource string) *ProjectsLocationsReusableConfigsGetIamPolicyCall
- func (r *ProjectsLocationsReusableConfigsService) List(parent string) *ProjectsLocationsReusableConfigsListCall
- func (r *ProjectsLocationsReusableConfigsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsReusableConfigsSetIamPolicyCall
- func (r *ProjectsLocationsReusableConfigsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
- type ProjectsLocationsReusableConfigsSetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsSetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsSetIamPolicyCall
- func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsReusableConfigsTestIamPermissionsCall
- func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
- func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
- func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsService
- type ProjectsService
- type PublicKey
- type ReconciliationOperationMetadata
- type RestoreCertificateAuthorityRequest
- type ReusableConfig
- type ReusableConfigValues
- type ReusableConfigWrapper
- type RevocationDetails
- type RevokeCertificateRequest
- type RevokedCertificate
- type ScheduleDeleteCertificateAuthorityRequest
- type Service
- type SetIamPolicyRequest
- type Status
- type Subject
- type SubjectAltNames
- type SubjectConfig
- type SubjectDescription
- type SubordinateConfig
- type SubordinateConfigChain
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
- type X509Extension
Constants ¶
const (
// See, edit, configure, and delete your Google Cloud Platform data
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessUrls ¶
type AccessUrls struct { // CaCertificateAccessUrl: The URL where this CertificateAuthority's CA // certificate is published. This will only be set for CAs that have // been activated. CaCertificateAccessUrl string `json:"caCertificateAccessUrl,omitempty"` // CrlAccessUrl: The URL where this CertificateAuthority's CRLs are // published. This will only be set for CAs that have been activated. CrlAccessUrl string `json:"crlAccessUrl,omitempty"` // ForceSendFields is a list of field names (e.g. // "CaCertificateAccessUrl") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CaCertificateAccessUrl") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AccessUrls: URLs where a CertificateAuthority will publish content.
func (*AccessUrls) MarshalJSON ¶
func (s *AccessUrls) MarshalJSON() ([]byte, error)
type ActivateCertificateAuthorityRequest ¶
type ActivateCertificateAuthorityRequest struct { // PemCaCertificate: Required. The signed CA certificate issued from // FetchCertificateAuthorityCsrResponse.pem_csr. PemCaCertificate string `json:"pemCaCertificate,omitempty"` // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // SubordinateConfig: Required. Must include information about the // issuer of 'pem_ca_certificate', and any further issuers until the // self-signed CA. SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "PemCaCertificate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PemCaCertificate") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ActivateCertificateAuthorityRequest: Request message for CertificateAuthorityService.ActivateCertificateAuthority.
func (*ActivateCertificateAuthorityRequest) MarshalJSON ¶
func (s *ActivateCertificateAuthorityRequest) MarshalJSON() ([]byte, error)
type AllowedConfigList ¶
type AllowedConfigList struct { // AllowedConfigValues: Required. All Certificates issued by the // CertificateAuthority must match at least one listed // ReusableConfigWrapper. If a ReusableConfigWrapper has an empty field, // any value will be allowed for that field. AllowedConfigValues []*ReusableConfigWrapper `json:"allowedConfigValues,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedConfigValues") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowedConfigValues") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*AllowedConfigList) MarshalJSON ¶
func (s *AllowedConfigList) MarshalJSON() ([]byte, error)
type AllowedSubjectAltNames ¶
type AllowedSubjectAltNames struct { // AllowCustomSans: Optional. Specifies if to allow custom X509Extension // values. AllowCustomSans bool `json:"allowCustomSans,omitempty"` // AllowGlobbingDnsWildcards: Optional. Specifies if glob patterns used // for allowed_dns_names allow wildcard certificates. If this is set, // certificate requests with wildcard domains will be permitted to match // a glob pattern specified in allowed_dns_names. Otherwise, certificate // requests with wildcard domains will be permitted only if // allowed_dns_names contains a literal wildcard. AllowGlobbingDnsWildcards bool `json:"allowGlobbingDnsWildcards,omitempty"` // AllowedDnsNames: Optional. Contains valid, fully-qualified host // names. Glob patterns are also supported. To allow an explicit // wildcard certificate, escape with backlash (i.e. "\*"). E.g. for // globbed entries: '*bar.com' will allow 'foo.bar.com', but not // '*.bar.com', unless the allow_globbing_dns_wildcards field is set. // E.g. for wildcard entries: '\*.bar.com' will allow '*.bar.com', but // not 'foo.bar.com'. AllowedDnsNames []string `json:"allowedDnsNames,omitempty"` // AllowedEmailAddresses: Optional. Contains valid RFC 2822 E-mail // addresses. Glob patterns are also supported. AllowedEmailAddresses []string `json:"allowedEmailAddresses,omitempty"` // AllowedIps: Optional. Contains valid 32-bit IPv4 addresses and subnet // ranges or RFC 4291 IPv6 addresses and subnet ranges. Subnet ranges // are specified using the '/' notation (e.g. 10.0.0.0/8, // 2001:700:300:1800::/64). Glob patterns are supported only for ip // address entries (i.e. not for subnet ranges). AllowedIps []string `json:"allowedIps,omitempty"` // AllowedUris: Optional. Contains valid RFC 3986 URIs. Glob patterns // are also supported. To match across path seperators (i.e. '/') use // the double star glob pattern (i.e. '**'). AllowedUris []string `json:"allowedUris,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowCustomSans") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowCustomSans") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AllowedSubjectAltNames: AllowedSubjectAltNames specifies the allowed values for SubjectAltNames by the CertificateAuthority when issuing Certificates.
func (*AllowedSubjectAltNames) MarshalJSON ¶
func (s *AllowedSubjectAltNames) MarshalJSON() ([]byte, error)
type AuditConfig ¶
type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` // Service: Specifies a service that will be enabled for audit logging. // For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. // `allServices` is a special value that covers all services. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuditLogConfigs") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AuditConfig: Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.
func (*AuditConfig) MarshalJSON ¶
func (s *AuditConfig) MarshalJSON() ([]byte, error)
type AuditLogConfig ¶
type AuditLogConfig struct { // ExemptedMembers: Specifies the identities that do not cause logging // for this type of permission. Follows the same format of // Binding.members. ExemptedMembers []string `json:"exemptedMembers,omitempty"` // LogType: The log type that this config enables. // // Possible values: // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy // "DATA_WRITE" - Data writes. Example: CloudSQL Users create // "DATA_READ" - Data reads. Example: CloudSQL Users list LogType string `json:"logType,omitempty"` // ForceSendFields is a list of field names (e.g. "ExemptedMembers") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ExemptedMembers") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AuditLogConfig: Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
func (*AuditLogConfig) MarshalJSON ¶
func (s *AuditLogConfig) MarshalJSON() ([]byte, error)
type Binding ¶
type Binding struct { // Condition: The condition that is associated with this binding. If the // condition evaluates to `true`, then this binding applies to the // current request. If the condition evaluates to `false`, then this // binding does not apply to the current request. However, a different // role binding might grant the same role to one or more of the members // in this binding. To learn which resources support conditions in their // IAM policies, see the IAM documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` // Members: Specifies the identities requesting access for a Cloud // Platform resource. `members` can have the following values: * // `allUsers`: A special identifier that represents anyone who is on the // internet; with or without a Google account. * // `allAuthenticatedUsers`: A special identifier that represents anyone // who is authenticated with a Google account or a service account. * // `user:{emailid}`: An email address that represents a specific Google // account. For example, `alice@example.com` . * // `serviceAccount:{emailid}`: An email address that represents a // service account. For example, // `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An // email address that represents a Google group. For example, // `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An // email address (plus unique identifier) representing a user that has // been recently deleted. For example, // `alice@example.com?uid=123456789012345678901`. If the user is // recovered, this value reverts to `user:{emailid}` and the recovered // user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. // If the service account is undeleted, this value reverts to // `serviceAccount:{emailid}` and the undeleted service account retains // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: // An email address (plus unique identifier) representing a Google group // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered // group retains the role in the binding. * `domain:{domain}`: The G // Suite domain (primary) that represents all the users of that domain. // For example, `google.com` or `example.com`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to `members`. For example, // `roles/viewer`, `roles/editor`, or `roles/owner`. Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Condition") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Binding: Associates `members` with a `role`.
func (*Binding) MarshalJSON ¶
type CaOptions ¶
type CaOptions struct { // IsCa: Optional. Refers to the "CA" X.509 extension, which is a // boolean value. When this value is missing, the extension will be // omitted from the CA certificate. IsCa bool `json:"isCa,omitempty"` // MaxIssuerPathLength: Optional. Refers to the path length restriction // X.509 extension. For a CA certificate, this value describes the depth // of subordinate CA certificates that are allowed. If this value is // less than 0, the request will fail. If this value is missing, the max // path length will be omitted from the CA certificate. MaxIssuerPathLength int64 `json:"maxIssuerPathLength,omitempty"` // ForceSendFields is a list of field names (e.g. "IsCa") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IsCa") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CaOptions: Describes values that are relevant in a CA certificate.
func (*CaOptions) MarshalJSON ¶
type CancelOperationRequest ¶
type CancelOperationRequest struct { }
CancelOperationRequest: The request message for Operations.CancelOperation.
type Certificate ¶
type Certificate struct { // CertificateDescription: Output only. A structured description of the // issued X.509 certificate. CertificateDescription *CertificateDescription `json:"certificateDescription,omitempty"` // Config: Immutable. A description of the certificate and key that does // not require X.509 or ASN.1. Config *CertificateConfig `json:"config,omitempty"` // CreateTime: Output only. The time at which this Certificate was // created. CreateTime string `json:"createTime,omitempty"` // Labels: Optional. Labels with user-defined metadata. Labels map[string]string `json:"labels,omitempty"` // Lifetime: Required. Immutable. The desired lifetime of a certificate. // Used to create the "not_before_time" and "not_after_time" fields // inside an X.509 certificate. Note that the lifetime may be truncated // if it would extend past the life of any certificate authority in the // issuing chain. Lifetime string `json:"lifetime,omitempty"` // Name: Output only. The resource path for this Certificate in the // format // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. Name string `json:"name,omitempty"` // PemCertificate: Output only. The pem-encoded, signed X.509 // certificate. PemCertificate string `json:"pemCertificate,omitempty"` // PemCertificateChain: Output only. The chain that may be used to // verify the X.509 certificate. Expected to be in issuer-to-root order // according to RFC 5246. PemCertificateChain []string `json:"pemCertificateChain,omitempty"` // PemCsr: Immutable. A pem-encoded X.509 certificate signing request // (CSR). PemCsr string `json:"pemCsr,omitempty"` // RevocationDetails: Output only. Details regarding the revocation of // this Certificate. This Certificate is considered revoked if and only // if this field is present. RevocationDetails *RevocationDetails `json:"revocationDetails,omitempty"` // UpdateTime: Output only. The time at which this Certificate was // updated. UpdateTime string `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. // "CertificateDescription") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificateDescription") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Certificate: A Certificate corresponds to a signed X.509 certificate issued by a CertificateAuthority.
func (*Certificate) MarshalJSON ¶
func (s *Certificate) MarshalJSON() ([]byte, error)
type CertificateAuthority ¶
type CertificateAuthority struct { // AccessUrls: Output only. URLs for accessing content published by this // CA, such as the CA certificate and CRLs. AccessUrls *AccessUrls `json:"accessUrls,omitempty"` // CaCertificateDescriptions: Output only. A structured description of // this CertificateAuthority's CA certificate and its issuers. Ordered // as self-to-root. CaCertificateDescriptions []*CertificateDescription `json:"caCertificateDescriptions,omitempty"` // CertificatePolicy: Optional. The CertificateAuthorityPolicy to // enforce when issuing Certificates from this CertificateAuthority. CertificatePolicy *CertificateAuthorityPolicy `json:"certificatePolicy,omitempty"` // Config: Required. Immutable. The config used to create a self-signed // X.509 certificate or CSR. Config *CertificateConfig `json:"config,omitempty"` // CreateTime: Output only. The time at which this CertificateAuthority // was created. CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. The time at which this CertificateAuthority // will be deleted, if scheduled for deletion. DeleteTime string `json:"deleteTime,omitempty"` // GcsBucket: Immutable. The name of a Cloud Storage bucket where this // CertificateAuthority will publish content, such as the CA certificate // and CRLs. This must be a bucket name, without any prefixes (such as // `gs://`) or suffixes (such as `.googleapis.com`). For example, to use // a bucket named `my-bucket`, you would simply specify `my-bucket`. If // not specified, a managed bucket will be created. GcsBucket string `json:"gcsBucket,omitempty"` // IssuingOptions: Optional. The IssuingOptions to follow when issuing // Certificates from this CertificateAuthority. IssuingOptions *IssuingOptions `json:"issuingOptions,omitempty"` // KeySpec: Required. Immutable. Used when issuing certificates for this // CertificateAuthority. If this CertificateAuthority is a self-signed // CertificateAuthority, this key is also used to sign the self-signed // CA certificate. Otherwise, it is used to sign a CSR. KeySpec *KeyVersionSpec `json:"keySpec,omitempty"` // Labels: Optional. Labels with user-defined metadata. Labels map[string]string `json:"labels,omitempty"` // Lifetime: Required. The desired lifetime of the CA certificate. Used // to create the "not_before_time" and "not_after_time" fields inside an // X.509 certificate. Lifetime string `json:"lifetime,omitempty"` // Name: Output only. The resource name for this CertificateAuthority in // the format `projects/*/locations/*/certificateAuthorities/*`. Name string `json:"name,omitempty"` // PemCaCertificates: Output only. This CertificateAuthority's // certificate chain, including the current CertificateAuthority's // certificate. Ordered such that the root issuer is the final element // (consistent with RFC 5246). For a self-signed CA, this will only list // the current CertificateAuthority's certificate. PemCaCertificates []string `json:"pemCaCertificates,omitempty"` // State: Output only. The State for this CertificateAuthority. // // Possible values: // "STATE_UNSPECIFIED" - Not specified. // "ENABLED" - Certificates can be issued from this CA. CRLs will be // generated for this CA. // "DISABLED" - Certificates cannot be issued from this CA. CRLs will // still be generated. // "PENDING_ACTIVATION" - Certificates cannot be issued from this CA. // CRLs will not be generated. // "PENDING_DELETION" - Certificates cannot be issued from this CA. // CRLs will not be generated. State string `json:"state,omitempty"` // SubordinateConfig: Optional. If this is a subordinate // CertificateAuthority, this field will be set with the subordinate // configuration, which describes its issuers. This may be updated, but // this CertificateAuthority must continue to validate. SubordinateConfig *SubordinateConfig `json:"subordinateConfig,omitempty"` // Tier: Required. Immutable. The Tier of this CertificateAuthority. // // Possible values: // "TIER_UNSPECIFIED" - Not specified. // "ENTERPRISE" - Enterprise tier. // "DEVOPS" - DevOps tier. Tier string `json:"tier,omitempty"` // Type: Required. Immutable. The Type of this CertificateAuthority. // // Possible values: // "TYPE_UNSPECIFIED" - Not specified. // "SELF_SIGNED" - Self-signed CA. // "SUBORDINATE" - Subordinate CA. Could be issued by a Private CA // CertificateAuthority or an unmanaged CA. Type string `json:"type,omitempty"` // UpdateTime: Output only. The time at which this CertificateAuthority // was updated. UpdateTime string `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. "AccessUrls") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessUrls") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CertificateAuthority: A CertificateAuthority represents an individual Certificate Authority. A CertificateAuthority can be used to create Certificates.
func (*CertificateAuthority) MarshalJSON ¶
func (s *CertificateAuthority) MarshalJSON() ([]byte, error)
type CertificateAuthorityPolicy ¶
type CertificateAuthorityPolicy struct { // AllowedCommonNames: Optional. If any value is specified here, then // all Certificates issued by the CertificateAuthority must match at // least one listed value. If no value is specified, all values will be // allowed for this fied. Glob patterns are also supported. AllowedCommonNames []string `json:"allowedCommonNames,omitempty"` // AllowedConfigList: Optional. All Certificates issued by the // CertificateAuthority must match at least one listed // ReusableConfigWrapper in the list. AllowedConfigList *AllowedConfigList `json:"allowedConfigList,omitempty"` // AllowedIssuanceModes: Optional. If specified, then only methods // allowed in the IssuanceModes may be used to issue Certificates. AllowedIssuanceModes *IssuanceModes `json:"allowedIssuanceModes,omitempty"` // AllowedLocationsAndOrganizations: Optional. If any Subject is // specified here, then all Certificates issued by the // CertificateAuthority must match at least one listed Subject. If a // Subject has an empty field, any value will be allowed for that field. AllowedLocationsAndOrganizations []*Subject `json:"allowedLocationsAndOrganizations,omitempty"` // AllowedSans: Optional. If a AllowedSubjectAltNames is specified here, // then all Certificates issued by the CertificateAuthority must match // AllowedSubjectAltNames. If no value or an empty value is specified, // any value will be allowed for the SubjectAltNames field. AllowedSans *AllowedSubjectAltNames `json:"allowedSans,omitempty"` // MaximumLifetime: Optional. The maximum lifetime allowed by the // CertificateAuthority. Note that if the any part if the issuing chain // expires before a Certificate's requested maximum_lifetime, the // effective lifetime will be explicitly truncated. MaximumLifetime string `json:"maximumLifetime,omitempty"` // OverwriteConfigValues: Optional. All Certificates issued by the // CertificateAuthority will use the provided configuration values, // overwriting any requested configuration values. OverwriteConfigValues *ReusableConfigWrapper `json:"overwriteConfigValues,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowedCommonNames") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowedCommonNames") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CertificateAuthorityPolicy: The issuing policy for a CertificateAuthority. Certificates will not be successfully issued from this CertificateAuthority if they violate the policy.
func (*CertificateAuthorityPolicy) MarshalJSON ¶
func (s *CertificateAuthorityPolicy) MarshalJSON() ([]byte, error)
type CertificateConfig ¶
type CertificateConfig struct { // PublicKey: Optional. The public key that corresponds to this config. // This is, for example, used when issuing Certificates, but not when // creating a self-signed CertificateAuthority or CertificateAuthority // CSR. PublicKey *PublicKey `json:"publicKey,omitempty"` // ReusableConfig: Required. Describes how some of the technical fields // in a certificate should be populated. ReusableConfig *ReusableConfigWrapper `json:"reusableConfig,omitempty"` // SubjectConfig: Required. Specifies some of the values in a // certificate that are related to the subject. SubjectConfig *SubjectConfig `json:"subjectConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "PublicKey") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PublicKey") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CertificateConfig: A CertificateConfig describes an X.509 certificate or CSR that is to be created, as an alternative to using ASN.1.
func (*CertificateConfig) MarshalJSON ¶
func (s *CertificateConfig) MarshalJSON() ([]byte, error)
type CertificateDescription ¶
type CertificateDescription struct { // AiaIssuingCertificateUrls: Describes lists of issuer CA certificate // URLs that appear in the "Authority Information Access" extension in // the certificate. AiaIssuingCertificateUrls []string `json:"aiaIssuingCertificateUrls,omitempty"` // AuthorityKeyId: Identifies the subject_key_id of the parent // certificate, per https://tools.ietf.org/html/rfc5280#section-4.2.1.1 AuthorityKeyId *KeyId `json:"authorityKeyId,omitempty"` // CertFingerprint: The hash of the x.509 certificate. CertFingerprint *CertificateFingerprint `json:"certFingerprint,omitempty"` // ConfigValues: Describes some of the technical fields in a // certificate. ConfigValues *ReusableConfigValues `json:"configValues,omitempty"` // CrlDistributionPoints: Describes a list of locations to obtain CRL // information, i.e. the DistributionPoint.fullName described by // https://tools.ietf.org/html/rfc5280#section-4.2.1.13 CrlDistributionPoints []string `json:"crlDistributionPoints,omitempty"` // PublicKey: The public key that corresponds to an issued certificate. PublicKey *PublicKey `json:"publicKey,omitempty"` // SubjectDescription: Describes some of the values in a certificate // that are related to the subject and lifetime. SubjectDescription *SubjectDescription `json:"subjectDescription,omitempty"` // SubjectKeyId: Provides a means of identifiying certificates that // contain a particular public key, per // https://tools.ietf.org/html/rfc5280#section-4.2.1.2. SubjectKeyId *KeyId `json:"subjectKeyId,omitempty"` // ForceSendFields is a list of field names (e.g. // "AiaIssuingCertificateUrls") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AiaIssuingCertificateUrls") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
CertificateDescription: A CertificateDescription describes an X.509 certificate or CSR that has been issued, as an alternative to using ASN.1 / X.509.
func (*CertificateDescription) MarshalJSON ¶
func (s *CertificateDescription) MarshalJSON() ([]byte, error)
type CertificateFingerprint ¶
type CertificateFingerprint struct { // Sha256Hash: The SHA 256 hash, encoded in hexadecimal, of the DER x509 // certificate. Sha256Hash string `json:"sha256Hash,omitempty"` // ForceSendFields is a list of field names (e.g. "Sha256Hash") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Sha256Hash") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CertificateFingerprint: A group of fingerprints for the x509 certificate.
func (*CertificateFingerprint) MarshalJSON ¶
func (s *CertificateFingerprint) MarshalJSON() ([]byte, error)
type CertificateRevocationList ¶
type CertificateRevocationList struct { // AccessUrl: Output only. The location where 'pem_crl' can be accessed. AccessUrl string `json:"accessUrl,omitempty"` // CreateTime: Output only. The time at which this // CertificateRevocationList was created. CreateTime string `json:"createTime,omitempty"` // Labels: Optional. Labels with user-defined metadata. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource path for this // CertificateRevocationList in the format // `projects/*/locations/*/certificateAuthorities/*/ // certificateRevocationLists/*`. Name string `json:"name,omitempty"` // PemCrl: Output only. The PEM-encoded X.509 CRL. PemCrl string `json:"pemCrl,omitempty"` // RevokedCertificates: Output only. The revoked serial numbers that // appear in pem_crl. RevokedCertificates []*RevokedCertificate `json:"revokedCertificates,omitempty"` // SequenceNumber: Output only. The CRL sequence number that appears in // pem_crl. SequenceNumber int64 `json:"sequenceNumber,omitempty,string"` // State: Output only. The State for this CertificateRevocationList. // // Possible values: // "STATE_UNSPECIFIED" - Not specified. // "ACTIVE" - The CertificateRevocationList is up to date. // "SUPERSEDED" - The CertificateRevocationList is no longer current. State string `json:"state,omitempty"` // UpdateTime: Output only. The time at which this // CertificateRevocationList was updated. UpdateTime string `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. "AccessUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessUrl") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CertificateRevocationList: A CertificateRevocationList corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.
func (*CertificateRevocationList) MarshalJSON ¶
func (s *CertificateRevocationList) MarshalJSON() ([]byte, error)
type DisableCertificateAuthorityRequest ¶
type DisableCertificateAuthorityRequest struct { // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DisableCertificateAuthorityRequest: Request message for CertificateAuthorityService.DisableCertificateAuthority.
func (*DisableCertificateAuthorityRequest) MarshalJSON ¶
func (s *DisableCertificateAuthorityRequest) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type EnableCertificateAuthorityRequest ¶
type EnableCertificateAuthorityRequest struct { // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EnableCertificateAuthorityRequest: Request message for CertificateAuthorityService.EnableCertificateAuthority.
func (*EnableCertificateAuthorityRequest) MarshalJSON ¶
func (s *EnableCertificateAuthorityRequest) MarshalJSON() ([]byte, error)
type Expr ¶
type Expr struct { // Description: Optional. Description of the expression. This is a // longer text which describes the expression, e.g. when hovered over it // in a UI. Description string `json:"description,omitempty"` // Expression: Textual representation of an expression in Common // Expression Language syntax. Expression string `json:"expression,omitempty"` // Location: Optional. String indicating the location of the expression // for error reporting, e.g. a file name and a position in the file. Location string `json:"location,omitempty"` // Title: Optional. Title for the expression, i.e. a short string // describing its purpose. This can be used e.g. in UIs which allow to // enter the expression. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Expr: Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
func (*Expr) MarshalJSON ¶
type ExtendedKeyUsageOptions ¶
type ExtendedKeyUsageOptions struct { // ClientAuth: Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially // described as "TLS WWW client authentication", though regularly used // for non-WWW TLS. ClientAuth bool `json:"clientAuth,omitempty"` // CodeSigning: Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially // described as "Signing of downloadable executable code client // authentication". CodeSigning bool `json:"codeSigning,omitempty"` // EmailProtection: Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially // described as "Email protection". EmailProtection bool `json:"emailProtection,omitempty"` // OcspSigning: Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially // described as "Signing OCSP responses". OcspSigning bool `json:"ocspSigning,omitempty"` // ServerAuth: Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially // described as "TLS WWW server authentication", though regularly used // for non-WWW TLS. ServerAuth bool `json:"serverAuth,omitempty"` // TimeStamping: Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially // described as "Binding the hash of an object to a time". TimeStamping bool `json:"timeStamping,omitempty"` // ForceSendFields is a list of field names (e.g. "ClientAuth") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ClientAuth") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ExtendedKeyUsageOptions: KeyUsage.ExtendedKeyUsageOptions has fields that correspond to certain common OIDs that could be specified as an extended key usage value.
func (*ExtendedKeyUsageOptions) MarshalJSON ¶
func (s *ExtendedKeyUsageOptions) MarshalJSON() ([]byte, error)
type FetchCertificateAuthorityCsrResponse ¶
type FetchCertificateAuthorityCsrResponse struct { // PemCsr: Output only. The PEM-encoded signed certificate signing // request (CSR). PemCsr string `json:"pemCsr,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "PemCsr") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PemCsr") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
FetchCertificateAuthorityCsrResponse: Response message for CertificateAuthorityService.FetchCertificateAuthorityCsr.
func (*FetchCertificateAuthorityCsrResponse) MarshalJSON ¶
func (s *FetchCertificateAuthorityCsrResponse) MarshalJSON() ([]byte, error)
type IssuanceModes ¶
type IssuanceModes struct { // AllowConfigBasedIssuance: Required. When true, allows callers to // create Certificates by specifying a CertificateConfig. AllowConfigBasedIssuance bool `json:"allowConfigBasedIssuance,omitempty"` // AllowCsrBasedIssuance: Required. When true, allows callers to create // Certificates by specifying a CSR. AllowCsrBasedIssuance bool `json:"allowCsrBasedIssuance,omitempty"` // ForceSendFields is a list of field names (e.g. // "AllowConfigBasedIssuance") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AllowConfigBasedIssuance") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
IssuanceModes: IssuanceModes specifies the allowed ways in which Certificates may be requested from this CertificateAuthority.
func (*IssuanceModes) MarshalJSON ¶
func (s *IssuanceModes) MarshalJSON() ([]byte, error)
type IssuingOptions ¶
type IssuingOptions struct { // IncludeCaCertUrl: Required. When true, includes a URL to the issuing // CA certificate in the "authority information access" X.509 extension. IncludeCaCertUrl bool `json:"includeCaCertUrl,omitempty"` // IncludeCrlAccessUrl: Required. When true, includes a URL to the CRL // corresponding to certificates issued from a CertificateAuthority. // CRLs will expire 7 days from their creation. However, we will rebuild // daily. CRLs are also rebuilt shortly after a certificate is revoked. IncludeCrlAccessUrl bool `json:"includeCrlAccessUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "IncludeCaCertUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IncludeCaCertUrl") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
IssuingOptions: Options that affect all certificates issued by a CertificateAuthority.
func (*IssuingOptions) MarshalJSON ¶
func (s *IssuingOptions) MarshalJSON() ([]byte, error)
type KeyId ¶
type KeyId struct { // KeyId: Optional. The value of this KeyId encoded in lowercase // hexadecimal. This is most likely the 160 bit SHA-1 hash of the public // key. KeyId string `json:"keyId,omitempty"` // ForceSendFields is a list of field names (e.g. "KeyId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "KeyId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
KeyId: A KeyId identifies a specific public key, usually by hashing the public key.
func (*KeyId) MarshalJSON ¶
type KeyUsage ¶
type KeyUsage struct { // BaseKeyUsage: Describes high-level ways in which a key may be used. BaseKeyUsage *KeyUsageOptions `json:"baseKeyUsage,omitempty"` // ExtendedKeyUsage: Detailed scenarios in which a key may be used. ExtendedKeyUsage *ExtendedKeyUsageOptions `json:"extendedKeyUsage,omitempty"` // UnknownExtendedKeyUsages: Used to describe extended key usages that // are not listed in the KeyUsage.ExtendedKeyUsageOptions message. UnknownExtendedKeyUsages []*ObjectId `json:"unknownExtendedKeyUsages,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseKeyUsage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BaseKeyUsage") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
KeyUsage: A KeyUsage describes key usage values that may appear in an X.509 certificate.
func (*KeyUsage) MarshalJSON ¶
type KeyUsageOptions ¶
type KeyUsageOptions struct { // CertSign: The key may be used to sign certificates. CertSign bool `json:"certSign,omitempty"` // ContentCommitment: The key may be used for cryptographic commitments. // Note that this may also be referred to as "non-repudiation". ContentCommitment bool `json:"contentCommitment,omitempty"` // CrlSign: The key may be used sign certificate revocation lists. CrlSign bool `json:"crlSign,omitempty"` // DataEncipherment: The key may be used to encipher data. DataEncipherment bool `json:"dataEncipherment,omitempty"` // DecipherOnly: The key may be used to decipher only. DecipherOnly bool `json:"decipherOnly,omitempty"` // DigitalSignature: The key may be used for digital signatures. DigitalSignature bool `json:"digitalSignature,omitempty"` // EncipherOnly: The key may be used to encipher only. EncipherOnly bool `json:"encipherOnly,omitempty"` // KeyAgreement: The key may be used in a key agreement protocol. KeyAgreement bool `json:"keyAgreement,omitempty"` // KeyEncipherment: The key may be used to encipher other keys. KeyEncipherment bool `json:"keyEncipherment,omitempty"` // ForceSendFields is a list of field names (e.g. "CertSign") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertSign") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
KeyUsageOptions: KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.
func (*KeyUsageOptions) MarshalJSON ¶
func (s *KeyUsageOptions) MarshalJSON() ([]byte, error)
type KeyVersionSpec ¶
type KeyVersionSpec struct { // Algorithm: Required. The algorithm to use for creating a managed // Cloud KMS key for a for a simplified experience. All managed keys // will be have their ProtectionLevel as `HSM`. // // Possible values: // "SIGN_HASH_ALGORITHM_UNSPECIFIED" - Not specified. // "RSA_PSS_2048_SHA256" - maps to // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_2048_SHA256 // "RSA_PSS_3072_SHA256" - maps to CryptoKeyVersionAlgorithm. // RSA_SIGN_PSS_3072_SHA256 // "RSA_PSS_4096_SHA256" - maps to // CryptoKeyVersionAlgorithm.RSA_SIGN_PSS_4096_SHA256 // "RSA_PKCS1_2048_SHA256" - maps to // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_2048_SHA256 // "RSA_PKCS1_3072_SHA256" - maps to // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_3072_SHA256 // "RSA_PKCS1_4096_SHA256" - maps to // CryptoKeyVersionAlgorithm.RSA_SIGN_PKCS1_4096_SHA256 // "EC_P256_SHA256" - maps to // CryptoKeyVersionAlgorithm.EC_SIGN_P256_SHA256 // "EC_P384_SHA384" - maps to // CryptoKeyVersionAlgorithm.EC_SIGN_P384_SHA384 Algorithm string `json:"algorithm,omitempty"` // CloudKmsKeyVersion: Required. The resource name for an existing Cloud // KMS CryptoKeyVersion in the format // `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. // This option enables full flexibility in the key's capabilities and // properties. CloudKmsKeyVersion string `json:"cloudKmsKeyVersion,omitempty"` // ForceSendFields is a list of field names (e.g. "Algorithm") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Algorithm") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
KeyVersionSpec: A Cloud KMS key configuration that a CertificateAuthority will use.
func (*KeyVersionSpec) MarshalJSON ¶
func (s *KeyVersionSpec) MarshalJSON() ([]byte, error)
type ListCertificateAuthoritiesResponse ¶
type ListCertificateAuthoritiesResponse struct { // CertificateAuthorities: The list of CertificateAuthorities. CertificateAuthorities []*CertificateAuthority `json:"certificateAuthorities,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this // value in ListCertificateAuthoritiesRequest.next_page_token to // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") 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. // "CertificateAuthorities") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificateAuthorities") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListCertificateAuthoritiesResponse: Response message for CertificateAuthorityService.ListCertificateAuthorities.
func (*ListCertificateAuthoritiesResponse) MarshalJSON ¶
func (s *ListCertificateAuthoritiesResponse) MarshalJSON() ([]byte, error)
type ListCertificateRevocationListsResponse ¶
type ListCertificateRevocationListsResponse struct { // CertificateRevocationLists: The list of CertificateRevocationLists. CertificateRevocationLists []*CertificateRevocationList `json:"certificateRevocationLists,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this // value in ListCertificateRevocationListsRequest.next_page_token to // retrieve the next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") 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. // "CertificateRevocationLists") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "CertificateRevocationLists") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
ListCertificateRevocationListsResponse: Response message for CertificateAuthorityService.ListCertificateRevocationLists.
func (*ListCertificateRevocationListsResponse) MarshalJSON ¶
func (s *ListCertificateRevocationListsResponse) MarshalJSON() ([]byte, error)
type ListCertificatesResponse ¶
type ListCertificatesResponse struct { // Certificates: The list of Certificates. Certificates []*Certificate `json:"certificates,omitempty"` // NextPageToken: A token to retrieve next page of results. Pass this // value in ListCertificatesRequest.next_page_token to retrieve the next // page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") 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. "Certificates") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Certificates") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListCertificatesResponse: Response message for CertificateAuthorityService.ListCertificates.
func (*ListCertificatesResponse) MarshalJSON ¶
func (s *ListCertificatesResponse) MarshalJSON() ([]byte, error)
type ListLocationsResponse ¶
type ListLocationsResponse struct { // Locations: A list of locations that matches the specified filter in // the request. Locations []*Location `json:"locations,omitempty"` // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListLocationsResponse: The response message for Locations.ListLocations.
func (*ListLocationsResponse) MarshalJSON ¶
func (s *ListLocationsResponse) MarshalJSON() ([]byte, error)
type ListOperationsResponse ¶
type ListOperationsResponse struct { // NextPageToken: The standard List next-page token. NextPageToken string `json:"nextPageToken,omitempty"` // Operations: A list of operations that matches the specified filter in // the request. Operations []*Operation `json:"operations,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListOperationsResponse: The response message for Operations.ListOperations.
func (*ListOperationsResponse) MarshalJSON ¶
func (s *ListOperationsResponse) MarshalJSON() ([]byte, error)
type ListReusableConfigsResponse ¶
type ListReusableConfigsResponse struct { // NextPageToken: A token to retrieve next page of results. Pass this // value in ListReusableConfigsRequest.next_page_token to retrieve the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // ReusableConfigs: The list of ReusableConfigs. ReusableConfigs []*ReusableConfig `json:"reusableConfigs,omitempty"` // Unreachable: A list of locations (e.g. "us-west1") 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. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListReusableConfigsResponse: Response message for CertificateAuthorityService.ListReusableConfigs.
func (*ListReusableConfigsResponse) MarshalJSON ¶
func (s *ListReusableConfigsResponse) MarshalJSON() ([]byte, error)
type Location ¶
type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". DisplayName string `json:"displayName,omitempty"` // Labels: Cross-service attributes for the location. For example // {"cloud.googleapis.com/region": "us-east1"} Labels map[string]string `json:"labels,omitempty"` // LocationId: The canonical id for this location. For example: // "us-east1". LocationId string `json:"locationId,omitempty"` // Metadata: Service-specific metadata. For example the available // capacity at the given location. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Resource name for the location, which may vary between // implementations. For example: // "projects/example-project/locations/us-east1" Name string `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. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Location: A resource that represents Google Cloud Platform location.
func (*Location) MarshalJSON ¶
type ObjectId ¶
type ObjectId struct { // ObjectIdPath: Required. The parts of an OID path. The most // significant parts of the path come first. ObjectIdPath []int64 `json:"objectIdPath,omitempty"` // ForceSendFields is a list of field names (e.g. "ObjectIdPath") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ObjectIdPath") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ObjectId: An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages.
func (*ObjectId) MarshalJSON ¶
type Operation ¶
type Operation struct { // Done: If the value is `false`, it means the operation is still in // progress. If `true`, the operation is completed, and either `error` // or `response` is available. Done bool `json:"done,omitempty"` // Error: The error result of the operation in case of failure or // cancellation. Error *Status `json:"error,omitempty"` // Metadata: Service-specific metadata associated with the operation. It // typically contains progress information and common metadata such as // create time. Some services might not provide such metadata. Any // method that returns a long-running operation should document the // metadata type, if any. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: The server-assigned name, which is only unique within the same // service that originally returns it. If you use the default HTTP // mapping, the `name` should be a resource name ending with // `operations/{unique_id}`. Name string `json:"name,omitempty"` // Response: The normal response of the operation in case of success. If // the original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type // `XxxResponse`, where `Xxx` is the original method name. For example, // if the original method name is `TakeSnapshot()`, the inferred // response type is `TakeSnapshotResponse`. Response googleapi.RawMessage `json:"response,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Operation: This resource represents a long-running operation that is the result of a network API call.
func (*Operation) MarshalJSON ¶
type OperationMetadata ¶
type OperationMetadata struct { // ApiVersion: Output only. API version used to start the operation. ApiVersion string `json:"apiVersion,omitempty"` // CreateTime: Output only. The time the operation was created. CreateTime string `json:"createTime,omitempty"` // EndTime: Output only. The time the operation finished running. EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have // successfully been cancelled have Operation.error value with a // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, // if any. StatusMessage string `json:"statusMessage,omitempty"` // Target: Output only. Server-defined resource path for the target of // the operation. Target string `json:"target,omitempty"` // Verb: Output only. Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApiVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OperationMetadata: Represents the metadata of the long-running operation.
func (*OperationMetadata) MarshalJSON ¶
func (s *OperationMetadata) MarshalJSON() ([]byte, error)
type Policy ¶
type Policy struct { // AuditConfigs: Specifies cloud audit logging configuration for this // policy. AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` // Bindings: Associates a list of `members` to a `role`. Optionally, may // specify a `condition` that determines how and when the `bindings` are // applied. Each of the `bindings` must contain at least one member. Bindings []*Binding `json:"bindings,omitempty"` // Etag: `etag` is used for optimistic concurrency control as a way to // help prevent simultaneous updates of a policy from overwriting each // other. It is strongly suggested that systems make use of the `etag` // in the read-modify-write cycle to perform policy updates in order to // avoid race conditions: An `etag` is returned in the response to // `getIamPolicy`, and systems are expected to put that etag in the // request to `setIamPolicy` to ensure that their change will be applied // to the same version of the policy. **Important:** If you use IAM // Conditions, you must include the `etag` field whenever you call // `setIamPolicy`. If you omit this field, then IAM allows you to // overwrite a version `3` policy with a version `1` policy, and all of // the conditions in the version `3` policy are lost. Etag string `json:"etag,omitempty"` // Version: Specifies the format of the policy. Valid values are `0`, // `1`, and `3`. Requests that specify an invalid value are rejected. // Any operation that affects conditional role bindings must specify // version `3`. This requirement applies to the following operations: * // Getting a policy that includes a conditional role binding * Adding a // conditional role binding to a policy * Changing a conditional role // binding in a policy * Removing any role binding, with or without a // condition, from a policy that includes conditions **Important:** If // you use IAM Conditions, you must include the `etag` field whenever // you call `setIamPolicy`. If you omit this field, then IAM allows you // to overwrite a version `3` policy with a version `1` policy, and all // of the conditions in the version `3` policy are lost. If a policy // does not include any conditions, operations on that policy may // specify any valid version or leave the field unset. To learn which // resources support conditions in their IAM policies, see the IAM // documentation // (https://cloud.google.com/iam/help/conditions/resource-policies). Version int64 `json:"version,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AuditConfigs") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AuditConfigs") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Policy: An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
func (*Policy) MarshalJSON ¶
type ProjectsLocationsCertificateAuthoritiesActivateCall ¶
type ProjectsLocationsCertificateAuthoritiesActivateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesActivateCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesActivateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesActivateCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.activate" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesActivateCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesActivateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesActivateCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesActivateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Do(opts ...googleapi.CallOption) (*CertificateRevocationList, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.get" call. Exactly one of *CertificateRevocationList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CertificateRevocationList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Do(opts ...googleapi.CallOption) (*ListCertificateRevocationListsResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.list" call. Exactly one of *ListCertificateRevocationListsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCertificateRevocationListsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Filter ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
Filter sets the optional parameter "filter": Only include resources that match the filter in the response.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) OrderBy ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
OrderBy sets the optional parameter "orderBy": Specify how the results should be sorted.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageSize ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
PageSize sets the optional parameter "pageSize": Limit on the number of CertificateRevocationLists to include in the response. Further CertificateRevocationLists can subsequently be obtained by including the ListCertificateRevocationListsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageToken ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
PageToken sets the optional parameter "pageToken": Pagination token, returned earlier via ListCertificateRevocationListsResponse.next_page_token.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Pages ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall) Pages(ctx context.Context, f func(*ListCertificateRevocationListsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) RequestId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
RequestId sets the optional parameter "requestId": An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) UpdateMask ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. A list of fields to be updated in this request.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService ¶
func NewProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Get ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetCall
Get: Returns a CertificateRevocationList.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) List ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsListCall
List: Lists CertificateRevocationLists.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Patch ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) Patch(name string, certificaterevocationlist *CertificateRevocationList) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsPatchCall
Patch: Update a CertificateRevocationList.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificateRevocationLists.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) CertificateId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) CertificateId(certificateId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
CertificateId sets the optional parameter "certificateId": It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.Tier, but is optional and its value is ignored otherwise.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificates.create" call. Exactly one of *Certificate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Certificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) RequestId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
RequestId sets the optional parameter "requestId": An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsCertificateAuthoritiesCertificatesGetCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificates.get" call. Exactly one of *Certificate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Certificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsCertificateAuthoritiesCertificatesListCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Do(opts ...googleapi.CallOption) (*ListCertificatesResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificates.list" call. Exactly one of *ListCertificatesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCertificatesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Filter ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
Filter sets the optional parameter "filter": Only include resources that match the filter in the response. For details on supported filters and syntax, see Certificates Filtering documentation (https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) OrderBy ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
OrderBy sets the optional parameter "orderBy": Specify how the results should be sorted. For details on supported fields and syntax, see Certificates Sorting documentation (https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageSize ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
PageSize sets the optional parameter "pageSize": Limit on the number of Certificates to include in the response. Further Certificates can subsequently be obtained by including the ListCertificatesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageToken ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
PageToken sets the optional parameter "pageToken": Pagination token, returned earlier via ListCertificatesResponse.next_page_token.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Pages ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesListCall) Pages(ctx context.Context, f func(*ListCertificatesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificates.patch" call. Exactly one of *Certificate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Certificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) RequestId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
RequestId sets the optional parameter "requestId": An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. A list of fields to be updated in this request.
type ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Do(opts ...googleapi.CallOption) (*Certificate, error)
Do executes the "privateca.projects.locations.certificateAuthorities.certificates.revoke" call. Exactly one of *Certificate or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Certificate.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesCertificatesService ¶
type ProjectsLocationsCertificateAuthoritiesCertificatesService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsCertificateAuthoritiesCertificatesService ¶
func NewProjectsLocationsCertificateAuthoritiesCertificatesService(s *Service) *ProjectsLocationsCertificateAuthoritiesCertificatesService
func (*ProjectsLocationsCertificateAuthoritiesCertificatesService) Create ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Create(parent string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesCreateCall
Create: Create a new Certificate in a given Project, Location from a particular CertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesService) Get ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesCertificatesGetCall
Get: Returns a Certificate.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesService) List ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesCertificatesListCall
List: Lists Certificates.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesService) Patch ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Patch(name string, certificate *Certificate) *ProjectsLocationsCertificateAuthoritiesCertificatesPatchCall
Patch: Update a Certificate. Currently, the only field you can update is the labels field.
func (*ProjectsLocationsCertificateAuthoritiesCertificatesService) Revoke ¶
func (r *ProjectsLocationsCertificateAuthoritiesCertificatesService) Revoke(name string, revokecertificaterequest *RevokeCertificateRequest) *ProjectsLocationsCertificateAuthoritiesCertificatesRevokeCall
Revoke: Revoke a Certificate.
type ProjectsLocationsCertificateAuthoritiesCreateCall ¶
type ProjectsLocationsCertificateAuthoritiesCreateCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) CertificateAuthorityId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) CertificateAuthorityId(certificateAuthorityId string) *ProjectsLocationsCertificateAuthoritiesCreateCall
CertificateAuthorityId sets the optional parameter "certificateAuthorityId": Required. It must be unique within a location and match the regular expression `[a-zA-Z0-9_-]{1,63}`
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesCreateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.create" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesCreateCall) RequestId ¶
func (c *ProjectsLocationsCertificateAuthoritiesCreateCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesCreateCall
RequestId sets the optional parameter "requestId": An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
type ProjectsLocationsCertificateAuthoritiesDisableCall ¶
type ProjectsLocationsCertificateAuthoritiesDisableCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesDisableCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesDisableCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesDisableCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.disable" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesDisableCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesDisableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesDisableCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesDisableCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesEnableCall ¶
type ProjectsLocationsCertificateAuthoritiesEnableCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesEnableCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesEnableCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesEnableCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.enable" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesEnableCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesEnableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesEnableCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesEnableCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesFetchCall ¶
type ProjectsLocationsCertificateAuthoritiesFetchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesFetchCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesFetchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesFetchCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Do(opts ...googleapi.CallOption) (*FetchCertificateAuthorityCsrResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.fetch" call. Exactly one of *FetchCertificateAuthorityCsrResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FetchCertificateAuthorityCsrResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesFetchCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesFetchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesFetchCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesFetchCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesFetchCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesFetchCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsCertificateAuthoritiesGetCall ¶
type ProjectsLocationsCertificateAuthoritiesGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesGetCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesGetCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Do(opts ...googleapi.CallOption) (*CertificateAuthority, error)
Do executes the "privateca.projects.locations.certificateAuthorities.get" call. Exactly one of *CertificateAuthority or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CertificateAuthority.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesGetCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesGetCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall ¶
type ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.certificateAuthorities.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
type ProjectsLocationsCertificateAuthoritiesListCall ¶
type ProjectsLocationsCertificateAuthoritiesListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesListCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesListCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Do(opts ...googleapi.CallOption) (*ListCertificateAuthoritiesResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.list" call. Exactly one of *ListCertificateAuthoritiesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCertificateAuthoritiesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesListCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesListCall) Filter ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Filter(filter string) *ProjectsLocationsCertificateAuthoritiesListCall
Filter sets the optional parameter "filter": Only include resources that match the filter in the response.
func (*ProjectsLocationsCertificateAuthoritiesListCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesListCall) IfNoneMatch ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCertificateAuthoritiesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsCertificateAuthoritiesListCall) OrderBy ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) OrderBy(orderBy string) *ProjectsLocationsCertificateAuthoritiesListCall
OrderBy sets the optional parameter "orderBy": Specify how the results should be sorted.
func (*ProjectsLocationsCertificateAuthoritiesListCall) PageSize ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageSize(pageSize int64) *ProjectsLocationsCertificateAuthoritiesListCall
PageSize sets the optional parameter "pageSize": Limit on the number of CertificateAuthorities to include in the response. Further CertificateAuthorities can subsequently be obtained by including the ListCertificateAuthoritiesResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsCertificateAuthoritiesListCall) PageToken ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) PageToken(pageToken string) *ProjectsLocationsCertificateAuthoritiesListCall
PageToken sets the optional parameter "pageToken": Pagination token, returned earlier via ListCertificateAuthoritiesResponse.next_page_token.
func (*ProjectsLocationsCertificateAuthoritiesListCall) Pages ¶
func (c *ProjectsLocationsCertificateAuthoritiesListCall) Pages(ctx context.Context, f func(*ListCertificateAuthoritiesResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsCertificateAuthoritiesPatchCall ¶
type ProjectsLocationsCertificateAuthoritiesPatchCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.patch" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) RequestId ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) RequestId(requestId string) *ProjectsLocationsCertificateAuthoritiesPatchCall
RequestId sets the optional parameter "requestId": An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
func (*ProjectsLocationsCertificateAuthoritiesPatchCall) UpdateMask ¶
func (c *ProjectsLocationsCertificateAuthoritiesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCertificateAuthoritiesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. A list of fields to be updated in this request.
type ProjectsLocationsCertificateAuthoritiesRestoreCall ¶
type ProjectsLocationsCertificateAuthoritiesRestoreCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesRestoreCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesRestoreCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesRestoreCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.restore" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesRestoreCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesRestoreCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesRestoreCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesRestoreCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall ¶
type ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.certificateAuthorities.scheduleDelete" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesService ¶
type ProjectsLocationsCertificateAuthoritiesService struct { CertificateRevocationLists *ProjectsLocationsCertificateAuthoritiesCertificateRevocationListsService Certificates *ProjectsLocationsCertificateAuthoritiesCertificatesService // contains filtered or unexported fields }
func NewProjectsLocationsCertificateAuthoritiesService ¶
func NewProjectsLocationsCertificateAuthoritiesService(s *Service) *ProjectsLocationsCertificateAuthoritiesService
func (*ProjectsLocationsCertificateAuthoritiesService) Activate ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Activate(name string, activatecertificateauthorityrequest *ActivateCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesActivateCall
Activate: Activate a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. After the parent Certificate Authority signs a certificate signing request from FetchCertificateAuthorityCsr, this method can complete the activation process.
func (*ProjectsLocationsCertificateAuthoritiesService) Create ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Create(parent string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesCreateCall
Create: Create a new CertificateAuthority in a given Project and Location.
func (*ProjectsLocationsCertificateAuthoritiesService) Disable ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Disable(name string, disablecertificateauthorityrequest *DisableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesDisableCall
Disable: Disable a CertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesService) Enable ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Enable(name string, enablecertificateauthorityrequest *EnableCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesEnableCall
Enable: Enable a CertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesService) Fetch ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Fetch(name string) *ProjectsLocationsCertificateAuthoritiesFetchCall
Fetch: Fetch a certificate signing request (CSR) from a CertificateAuthority that is in state PENDING_ACTIVATION and is of type SUBORDINATE. The CSR must then be signed by the desired parent Certificate Authority, which could be another CertificateAuthority resource, or could be an on-prem certificate authority. See also ActivateCertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesService) Get ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Get(name string) *ProjectsLocationsCertificateAuthoritiesGetCall
Get: Returns a CertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) GetIamPolicy(resource string) *ProjectsLocationsCertificateAuthoritiesGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
func (*ProjectsLocationsCertificateAuthoritiesService) List ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) List(parent string) *ProjectsLocationsCertificateAuthoritiesListCall
List: Lists CertificateAuthorities.
func (*ProjectsLocationsCertificateAuthoritiesService) Patch ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Patch(name string, certificateauthority *CertificateAuthority) *ProjectsLocationsCertificateAuthoritiesPatchCall
Patch: Update a CertificateAuthority.
func (*ProjectsLocationsCertificateAuthoritiesService) Restore ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) Restore(name string, restorecertificateauthorityrequest *RestoreCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesRestoreCall
Restore: Restore a CertificateAuthority that is scheduled for deletion.
func (*ProjectsLocationsCertificateAuthoritiesService) ScheduleDelete ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) ScheduleDelete(name string, scheduledeletecertificateauthorityrequest *ScheduleDeleteCertificateAuthorityRequest) *ProjectsLocationsCertificateAuthoritiesScheduleDeleteCall
ScheduleDelete: Schedule a CertificateAuthority for deletion.
func (*ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
func (*ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions ¶
func (r *ProjectsLocationsCertificateAuthoritiesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall ¶
type ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.certificateAuthorities.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall ¶
type ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "privateca.projects.locations.certificateAuthorities.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsCertificateAuthoritiesTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsGetCall ¶
type ProjectsLocationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsGetCall) Context ¶
func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsGetCall) Do ¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error)
Do executes the "privateca.projects.locations.get" call. Exactly one of *Location or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Location.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall) Fields ¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsGetCall) Header ¶
func (c *ProjectsLocationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsListCall ¶
type ProjectsLocationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsListCall) Context ¶
func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsListCall) Do ¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error)
Do executes the "privateca.projects.locations.list" call. Exactly one of *ListLocationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLocationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsListCall) Fields ¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsListCall) Filter ¶
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in AIP-160 (https://google.aip.dev/160).
func (*ProjectsLocationsListCall) Header ¶
func (c *ProjectsLocationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsListCall) PageSize ¶
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number of results to return. If not set, the service will select a default.
func (*ProjectsLocationsListCall) PageToken ¶
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
func (*ProjectsLocationsListCall) Pages ¶
func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsCancelCall ¶
type ProjectsLocationsOperationsCancelCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsCancelCall) Context ¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsCancelCall) Do ¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "privateca.projects.locations.operations.cancel" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsCancelCall) Fields ¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsCancelCall) Header ¶
func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsDeleteCall ¶
type ProjectsLocationsOperationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsDeleteCall) Context ¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsDeleteCall) Do ¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "privateca.projects.locations.operations.delete" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsDeleteCall) Fields ¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsDeleteCall) Header ¶
func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsOperationsGetCall ¶
type ProjectsLocationsOperationsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsGetCall) Context ¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsGetCall) Do ¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
Do executes the "privateca.projects.locations.operations.get" call. Exactly one of *Operation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Operation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsGetCall) Fields ¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsGetCall) Header ¶
func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsOperationsListCall ¶
type ProjectsLocationsOperationsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsOperationsListCall) Context ¶
func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsOperationsListCall) Do ¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
Do executes the "privateca.projects.locations.operations.list" call. Exactly one of *ListOperationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListOperationsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsOperationsListCall) Fields ¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsOperationsListCall) Filter ¶
func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall) Header ¶
func (c *ProjectsLocationsOperationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsOperationsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsOperationsListCall) PageSize ¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list page size.
func (*ProjectsLocationsOperationsListCall) PageToken ¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list page token.
func (*ProjectsLocationsOperationsListCall) Pages ¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsOperationsService ¶
type ProjectsLocationsOperationsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsOperationsService ¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService) Cancel ¶
func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
func (*ProjectsLocationsOperationsService) Delete ¶
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
func (*ProjectsLocationsOperationsService) Get ¶
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
func (*ProjectsLocationsOperationsService) List ¶
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
type ProjectsLocationsReusableConfigsGetCall ¶
type ProjectsLocationsReusableConfigsGetCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsReusableConfigsGetCall) Context ¶
func (c *ProjectsLocationsReusableConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsReusableConfigsGetCall) Do ¶
func (c *ProjectsLocationsReusableConfigsGetCall) Do(opts ...googleapi.CallOption) (*ReusableConfig, error)
Do executes the "privateca.projects.locations.reusableConfigs.get" call. Exactly one of *ReusableConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReusableConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsReusableConfigsGetCall) Fields ¶
func (c *ProjectsLocationsReusableConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsReusableConfigsGetCall) Header ¶
func (c *ProjectsLocationsReusableConfigsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsReusableConfigsGetCall) IfNoneMatch ¶
func (c *ProjectsLocationsReusableConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProjectsLocationsReusableConfigsGetIamPolicyCall ¶
type ProjectsLocationsReusableConfigsGetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) Context ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsGetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) Do ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.reusableConfigs.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsGetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) Header ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) IfNoneMatch ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsGetIamPolicyCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsReusableConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion ¶
func (c *ProjectsLocationsReusableConfigsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsReusableConfigsGetIamPolicyCall
OptionsRequestedPolicyVersion sets the optional parameter "options.requestedPolicyVersion": The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
type ProjectsLocationsReusableConfigsListCall ¶
type ProjectsLocationsReusableConfigsListCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsReusableConfigsListCall) Context ¶
func (c *ProjectsLocationsReusableConfigsListCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsReusableConfigsListCall) Do ¶
func (c *ProjectsLocationsReusableConfigsListCall) Do(opts ...googleapi.CallOption) (*ListReusableConfigsResponse, error)
Do executes the "privateca.projects.locations.reusableConfigs.list" call. Exactly one of *ListReusableConfigsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListReusableConfigsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsReusableConfigsListCall) Fields ¶
func (c *ProjectsLocationsReusableConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsReusableConfigsListCall) Filter ¶
func (c *ProjectsLocationsReusableConfigsListCall) Filter(filter string) *ProjectsLocationsReusableConfigsListCall
Filter sets the optional parameter "filter": Only include resources that match the filter in the response.
func (*ProjectsLocationsReusableConfigsListCall) Header ¶
func (c *ProjectsLocationsReusableConfigsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProjectsLocationsReusableConfigsListCall) IfNoneMatch ¶
func (c *ProjectsLocationsReusableConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReusableConfigsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProjectsLocationsReusableConfigsListCall) OrderBy ¶
func (c *ProjectsLocationsReusableConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsReusableConfigsListCall
OrderBy sets the optional parameter "orderBy": Specify how the results should be sorted.
func (*ProjectsLocationsReusableConfigsListCall) PageSize ¶
func (c *ProjectsLocationsReusableConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsReusableConfigsListCall
PageSize sets the optional parameter "pageSize": Limit on the number of ReusableConfigs to include in the response. Further ReusableConfigs can subsequently be obtained by including the ListReusableConfigsResponse.next_page_token in a subsequent request. If unspecified, the server will pick an appropriate default.
func (*ProjectsLocationsReusableConfigsListCall) PageToken ¶
func (c *ProjectsLocationsReusableConfigsListCall) PageToken(pageToken string) *ProjectsLocationsReusableConfigsListCall
PageToken sets the optional parameter "pageToken": Pagination token, returned earlier via ListReusableConfigsResponse.next_page_token.
func (*ProjectsLocationsReusableConfigsListCall) Pages ¶
func (c *ProjectsLocationsReusableConfigsListCall) Pages(ctx context.Context, f func(*ListReusableConfigsResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type ProjectsLocationsReusableConfigsService ¶
type ProjectsLocationsReusableConfigsService struct {
// contains filtered or unexported fields
}
func NewProjectsLocationsReusableConfigsService ¶
func NewProjectsLocationsReusableConfigsService(s *Service) *ProjectsLocationsReusableConfigsService
func (*ProjectsLocationsReusableConfigsService) Get ¶
func (r *ProjectsLocationsReusableConfigsService) Get(name string) *ProjectsLocationsReusableConfigsGetCall
Get: Returns a ReusableConfig.
func (*ProjectsLocationsReusableConfigsService) GetIamPolicy ¶
func (r *ProjectsLocationsReusableConfigsService) GetIamPolicy(resource string) *ProjectsLocationsReusableConfigsGetIamPolicyCall
GetIamPolicy: Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
func (*ProjectsLocationsReusableConfigsService) List ¶
func (r *ProjectsLocationsReusableConfigsService) List(parent string) *ProjectsLocationsReusableConfigsListCall
List: Lists ReusableConfigs.
func (*ProjectsLocationsReusableConfigsService) SetIamPolicy ¶
func (r *ProjectsLocationsReusableConfigsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsReusableConfigsSetIamPolicyCall
SetIamPolicy: Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
func (*ProjectsLocationsReusableConfigsService) TestIamPermissions ¶
func (r *ProjectsLocationsReusableConfigsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
TestIamPermissions: Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
type ProjectsLocationsReusableConfigsSetIamPolicyCall ¶
type ProjectsLocationsReusableConfigsSetIamPolicyCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsReusableConfigsSetIamPolicyCall) Context ¶
func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsSetIamPolicyCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsReusableConfigsSetIamPolicyCall) Do ¶
func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
Do executes the "privateca.projects.locations.reusableConfigs.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsReusableConfigsSetIamPolicyCall) Fields ¶
func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsSetIamPolicyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsReusableConfigsSetIamPolicyCall) Header ¶
func (c *ProjectsLocationsReusableConfigsSetIamPolicyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsReusableConfigsTestIamPermissionsCall ¶
type ProjectsLocationsReusableConfigsTestIamPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProjectsLocationsReusableConfigsTestIamPermissionsCall) Context ¶
func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProjectsLocationsReusableConfigsTestIamPermissionsCall) Do ¶
func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Do executes the "privateca.projects.locations.reusableConfigs.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsReusableConfigsTestIamPermissionsCall) Fields ¶
func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsReusableConfigsTestIamPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProjectsLocationsReusableConfigsTestIamPermissionsCall) Header ¶
func (c *ProjectsLocationsReusableConfigsTestIamPermissionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProjectsLocationsService ¶
type ProjectsLocationsService struct { CertificateAuthorities *ProjectsLocationsCertificateAuthoritiesService Operations *ProjectsLocationsOperationsService ReusableConfigs *ProjectsLocationsReusableConfigsService // contains filtered or unexported fields }
func NewProjectsLocationsService ¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
func (*ProjectsLocationsService) Get ¶
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall
Get: Gets information about a location.
func (*ProjectsLocationsService) List ¶
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
type ProjectsService ¶
type ProjectsService struct { Locations *ProjectsLocationsService // contains filtered or unexported fields }
func NewProjectsService ¶
func NewProjectsService(s *Service) *ProjectsService
type PublicKey ¶
type PublicKey struct { // Key: Required. A public key. When this is specified in a request, the // padding and encoding can be any of the options described by the // respective 'KeyType' value. When this is generated by the service, it // will always be an RFC 5280 SubjectPublicKeyInfo // (https://tools.ietf.org/html/rfc5280#section-4.1) structure // containing an algorithm identifier and a key. Key string `json:"key,omitempty"` // Type: Optional. The type of public key. If specified, it must match // the public key used for the`key` field. // // Possible values: // "KEY_TYPE_UNSPECIFIED" - Default unspecified value. // "PEM_RSA_KEY" - A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey // structure, or an RFC 5280 // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 // ) structure containing the former. // "PEM_EC_KEY" - An RFC 5280 // [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1 // ) structure containing a PEM-encoded compressed NIST // P-256/secp256r1/prime256v1 or P-384 key. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
PublicKey: A PublicKey describes a public key.
func (*PublicKey) MarshalJSON ¶
type ReconciliationOperationMetadata ¶ added in v0.43.0
type ReconciliationOperationMetadata struct { // DeleteResource: If set to TRUE, the resource has to be deleted. When // using this bit, the CLH should fail the operation. DeleteResource bool `json:"deleteResource,omitempty"` // ForceSendFields is a list of field names (e.g. "DeleteResource") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeleteResource") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReconciliationOperationMetadata: Operation metadata returned by the CLH during resource state reconciliation.
func (*ReconciliationOperationMetadata) MarshalJSON ¶ added in v0.43.0
func (s *ReconciliationOperationMetadata) MarshalJSON() ([]byte, error)
type RestoreCertificateAuthorityRequest ¶
type RestoreCertificateAuthorityRequest struct { // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "RequestId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RequestId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RestoreCertificateAuthorityRequest: Request message for CertificateAuthorityService.RestoreCertificateAuthority.
func (*RestoreCertificateAuthorityRequest) MarshalJSON ¶
func (s *RestoreCertificateAuthorityRequest) MarshalJSON() ([]byte, error)
type ReusableConfig ¶
type ReusableConfig struct { // CreateTime: Output only. The time at which this ReusableConfig was // created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. A human-readable description of scenarios // these ReusableConfigValues may be compatible with. Description string `json:"description,omitempty"` // Labels: Optional. Labels with user-defined metadata. Labels map[string]string `json:"labels,omitempty"` // Name: Output only. The resource path for this ReusableConfig in the // format `projects/*/locations/*/reusableConfigs/*`. Name string `json:"name,omitempty"` // UpdateTime: Output only. The time at which this ReusableConfig was // updated. UpdateTime string `json:"updateTime,omitempty"` // Values: Required. The config values. Values *ReusableConfigValues `json:"values,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreateTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReusableConfig: A ReusableConfig refers to a managed ReusableConfigValues. Those, in turn, are used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.
func (*ReusableConfig) MarshalJSON ¶
func (s *ReusableConfig) MarshalJSON() ([]byte, error)
type ReusableConfigValues ¶
type ReusableConfigValues struct { // AdditionalExtensions: Optional. Describes custom X.509 extensions. AdditionalExtensions []*X509Extension `json:"additionalExtensions,omitempty"` // AiaOcspServers: Optional. Describes Online Certificate Status // Protocol (OCSP) endpoint addresses that appear in the "Authority // Information Access" extension in the certificate. AiaOcspServers []string `json:"aiaOcspServers,omitempty"` // CaOptions: Optional. Describes options in this ReusableConfigValues // that are relevant in a CA certificate. CaOptions *CaOptions `json:"caOptions,omitempty"` // KeyUsage: Optional. Indicates the intended use for keys that // correspond to a certificate. KeyUsage *KeyUsage `json:"keyUsage,omitempty"` // PolicyIds: Optional. Describes the X.509 certificate policy object // identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4. PolicyIds []*ObjectId `json:"policyIds,omitempty"` // ForceSendFields is a list of field names (e.g. // "AdditionalExtensions") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalExtensions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReusableConfigValues: A ReusableConfigValues is used to describe certain fields of an X.509 certificate, such as the key usage fields, fields specific to CA certificates, certificate policy extensions and custom extensions.
func (*ReusableConfigValues) MarshalJSON ¶
func (s *ReusableConfigValues) MarshalJSON() ([]byte, error)
type ReusableConfigWrapper ¶
type ReusableConfigWrapper struct { // ReusableConfig: Required. A resource path to a ReusableConfig in the // format `projects/*/locations/*/reusableConfigs/*`. ReusableConfig string `json:"reusableConfig,omitempty"` // ReusableConfigValues: Required. A user-specified inline // ReusableConfigValues. ReusableConfigValues *ReusableConfigValues `json:"reusableConfigValues,omitempty"` // ForceSendFields is a list of field names (e.g. "ReusableConfig") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ReusableConfig") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReusableConfigWrapper: A ReusableConfigWrapper describes values that may assist in creating an X.509 certificate, or a reference to a pre-defined set of values.
func (*ReusableConfigWrapper) MarshalJSON ¶
func (s *ReusableConfigWrapper) MarshalJSON() ([]byte, error)
type RevocationDetails ¶
type RevocationDetails struct { // RevocationState: Indicates why a Certificate was revoked. // // Possible values: // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This // value does indicate that a Certificate has been revoked, but that a // reason has not been recorded. // "KEY_COMPROMISE" - Key material for this Certificate may have // leaked. // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a // certificate authority in the issuing path may have leaked. // "AFFILIATION_CHANGED" - The subject or other attributes in this // Certificate have changed. // "SUPERSEDED" - This Certificate has been superseded. // "CESSATION_OF_OPERATION" - This Certificate or entities in the // issuing path have ceased to operate. // "CERTIFICATE_HOLD" - This Certificate should not be considered // valid, it is expected that it may become valid in the future. // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission // to assert the listed attributes. // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines // appropriate attributes for a Certificate may have been compromised. RevocationState string `json:"revocationState,omitempty"` // RevocationTime: The time at which this Certificate was revoked. RevocationTime string `json:"revocationTime,omitempty"` // ForceSendFields is a list of field names (e.g. "RevocationState") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RevocationState") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RevocationDetails: Describes fields that are relavent to the revocation of a Certificate.
func (*RevocationDetails) MarshalJSON ¶
func (s *RevocationDetails) MarshalJSON() ([]byte, error)
type RevokeCertificateRequest ¶
type RevokeCertificateRequest struct { // Reason: Required. The RevocationReason for revoking this certificate. // // Possible values: // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This // value does indicate that a Certificate has been revoked, but that a // reason has not been recorded. // "KEY_COMPROMISE" - Key material for this Certificate may have // leaked. // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a // certificate authority in the issuing path may have leaked. // "AFFILIATION_CHANGED" - The subject or other attributes in this // Certificate have changed. // "SUPERSEDED" - This Certificate has been superseded. // "CESSATION_OF_OPERATION" - This Certificate or entities in the // issuing path have ceased to operate. // "CERTIFICATE_HOLD" - This Certificate should not be considered // valid, it is expected that it may become valid in the future. // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission // to assert the listed attributes. // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines // appropriate attributes for a Certificate may have been compromised. Reason string `json:"reason,omitempty"` // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. "Reason") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Reason") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RevokeCertificateRequest: Request message for CertificateAuthorityService.RevokeCertificate.
func (*RevokeCertificateRequest) MarshalJSON ¶
func (s *RevokeCertificateRequest) MarshalJSON() ([]byte, error)
type RevokedCertificate ¶
type RevokedCertificate struct { // Certificate: The resource path for the Certificate in the format // `projects/*/locations/*/certificateAuthorities/*/certificates/*`. Certificate string `json:"certificate,omitempty"` // HexSerialNumber: The serial number of the Certificate. HexSerialNumber string `json:"hexSerialNumber,omitempty"` // RevocationReason: The reason the Certificate was revoked. // // Possible values: // "REVOCATION_REASON_UNSPECIFIED" - Default unspecified value. This // value does indicate that a Certificate has been revoked, but that a // reason has not been recorded. // "KEY_COMPROMISE" - Key material for this Certificate may have // leaked. // "CERTIFICATE_AUTHORITY_COMPROMISE" - The key material for a // certificate authority in the issuing path may have leaked. // "AFFILIATION_CHANGED" - The subject or other attributes in this // Certificate have changed. // "SUPERSEDED" - This Certificate has been superseded. // "CESSATION_OF_OPERATION" - This Certificate or entities in the // issuing path have ceased to operate. // "CERTIFICATE_HOLD" - This Certificate should not be considered // valid, it is expected that it may become valid in the future. // "PRIVILEGE_WITHDRAWN" - This Certificate no longer has permission // to assert the listed attributes. // "ATTRIBUTE_AUTHORITY_COMPROMISE" - The authority which determines // appropriate attributes for a Certificate may have been compromised. RevocationReason string `json:"revocationReason,omitempty"` // ForceSendFields is a list of field names (e.g. "Certificate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Certificate") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RevokedCertificate: Describes a revoked Certificate.
func (*RevokedCertificate) MarshalJSON ¶
func (s *RevokedCertificate) MarshalJSON() ([]byte, error)
type ScheduleDeleteCertificateAuthorityRequest ¶
type ScheduleDeleteCertificateAuthorityRequest struct { // IgnoreActiveCertificates: Optional. This field allows the CA to be // scheduled for deletion even if the CA has active certs. Active certs // include both unrevoked and unexpired certs. IgnoreActiveCertificates bool `json:"ignoreActiveCertificates,omitempty"` // RequestId: Optional. An ID to identify requests. Specify a unique // request ID so that if you must retry your request, the server will // know to ignore the request if it has already been completed. The // server will guarantee that for at least 60 minutes since the first // request. For example, consider a situation where you make an initial // request and t he request times out. If you make the request again // with the same request ID, the server can check if original operation // with the same request ID was received, and if so, will ignore the // second request. This prevents clients from accidentally creating // duplicate commitments. The request ID must be a valid UUID with the // exception that zero UUID is not supported // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` // ForceSendFields is a list of field names (e.g. // "IgnoreActiveCertificates") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IgnoreActiveCertificates") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ScheduleDeleteCertificateAuthorityRequest: Request message for CertificateAuthorityService.ScheduleDeleteCertificateAuthority.
func (*ScheduleDeleteCertificateAuthorityRequest) MarshalJSON ¶
func (s *ScheduleDeleteCertificateAuthorityRequest) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Projects *ProjectsService // contains filtered or unexported fields }
func New
deprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶
NewService creates a new Service.
type SetIamPolicyRequest ¶
type SetIamPolicyRequest struct { // Policy: REQUIRED: The complete policy to be applied to the // `resource`. The size of the policy is limited to a few 10s of KB. An // empty policy is a valid policy but certain Cloud Platform services // (such as Projects) might reject them. Policy *Policy `json:"policy,omitempty"` // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the // policy to modify. Only the fields in the mask will be modified. If no // mask is provided, the following default mask is used: `paths: // "bindings, etag" UpdateMask string `json:"updateMask,omitempty"` // ForceSendFields is a list of field names (e.g. "Policy") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Policy") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SetIamPolicyRequest: Request message for `SetIamPolicy` method.
func (*SetIamPolicyRequest) MarshalJSON ¶
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error)
type Status ¶
type Status struct { // Code: The status code, which should be an enum value of // google.rpc.Code. Code int64 `json:"code,omitempty"` // Details: A list of messages that carry the error details. There is a // common set of message types for APIs to use. Details []googleapi.RawMessage `json:"details,omitempty"` // Message: A developer-facing error message, which should be in // English. Any user-facing error message should be localized and sent // in the google.rpc.Status.details field, or localized by the client. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
func (*Status) MarshalJSON ¶
type Subject ¶
type Subject struct { // CountryCode: The country code of the subject. CountryCode string `json:"countryCode,omitempty"` // Locality: The locality or city of the subject. Locality string `json:"locality,omitempty"` // Organization: The organization of the subject. Organization string `json:"organization,omitempty"` // OrganizationalUnit: The organizational_unit of the subject. OrganizationalUnit string `json:"organizationalUnit,omitempty"` // PostalCode: The postal code of the subject. PostalCode string `json:"postalCode,omitempty"` // Province: The province, territory, or regional state of the subject. Province string `json:"province,omitempty"` // StreetAddress: The street address of the subject. StreetAddress string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "CountryCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CountryCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Subject: Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.
func (*Subject) MarshalJSON ¶
type SubjectAltNames ¶
type SubjectAltNames struct { // CustomSans: Contains additional subject alternative name values. CustomSans []*X509Extension `json:"customSans,omitempty"` // DnsNames: Contains only valid, fully-qualified host names. DnsNames []string `json:"dnsNames,omitempty"` // EmailAddresses: Contains only valid RFC 2822 E-mail addresses. EmailAddresses []string `json:"emailAddresses,omitempty"` // IpAddresses: Contains only valid 32-bit IPv4 addresses or RFC 4291 // IPv6 addresses. IpAddresses []string `json:"ipAddresses,omitempty"` // Uris: Contains only valid RFC 3986 URIs. Uris []string `json:"uris,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomSans") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomSans") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SubjectAltNames: SubjectAltNames corresponds to a more modern way of listing what the asserted identity is in a certificate (i.e., compared to the "common name" in the distinguished name).
func (*SubjectAltNames) MarshalJSON ¶
func (s *SubjectAltNames) MarshalJSON() ([]byte, error)
type SubjectConfig ¶
type SubjectConfig struct { // CommonName: Optional. The "common name" of the distinguished name. CommonName string `json:"commonName,omitempty"` // Subject: Required. Contains distinguished name fields such as the // location and organization. Subject *Subject `json:"subject,omitempty"` // SubjectAltName: Optional. The subject alternative name fields. SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` // ForceSendFields is a list of field names (e.g. "CommonName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CommonName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SubjectConfig: These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.
func (*SubjectConfig) MarshalJSON ¶
func (s *SubjectConfig) MarshalJSON() ([]byte, error)
type SubjectDescription ¶
type SubjectDescription struct { // CommonName: The "common name" of the distinguished name. CommonName string `json:"commonName,omitempty"` // HexSerialNumber: The serial number encoded in lowercase hexadecimal. HexSerialNumber string `json:"hexSerialNumber,omitempty"` // Lifetime: For convenience, the actual lifetime of an issued // certificate. Corresponds to 'not_after_time' - 'not_before_time'. Lifetime string `json:"lifetime,omitempty"` // NotAfterTime: The time at which the certificate expires. NotAfterTime string `json:"notAfterTime,omitempty"` // NotBeforeTime: The time at which the certificate becomes valid. NotBeforeTime string `json:"notBeforeTime,omitempty"` // Subject: Contains distinguished name fields such as the location and // organization. Subject *Subject `json:"subject,omitempty"` // SubjectAltName: The subject alternative name fields. SubjectAltName *SubjectAltNames `json:"subjectAltName,omitempty"` // ForceSendFields is a list of field names (e.g. "CommonName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CommonName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SubjectDescription: These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.
func (*SubjectDescription) MarshalJSON ¶
func (s *SubjectDescription) MarshalJSON() ([]byte, error)
type SubordinateConfig ¶
type SubordinateConfig struct { // CertificateAuthority: Required. This can refer to a // CertificateAuthority in the same project that was used to create a // subordinate CertificateAuthority. This field is used for information // and usability purposes only. The resource name is in the format // `projects/*/locations/*/certificateAuthorities/*`. CertificateAuthority string `json:"certificateAuthority,omitempty"` // PemIssuerChain: Required. Contains the PEM certificate chain for the // issuers of this CertificateAuthority, but not pem certificate for // this CA itself. PemIssuerChain *SubordinateConfigChain `json:"pemIssuerChain,omitempty"` // ForceSendFields is a list of field names (e.g. // "CertificateAuthority") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CertificateAuthority") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SubordinateConfig: Describes a subordinate CA's issuers. This is either a resource path to a known issuing CertificateAuthority, or a PEM issuer certificate chain.
func (*SubordinateConfig) MarshalJSON ¶
func (s *SubordinateConfig) MarshalJSON() ([]byte, error)
type SubordinateConfigChain ¶
type SubordinateConfigChain struct { // PemCertificates: Required. Expected to be in leaf-to-root order // according to RFC 5246. PemCertificates []string `json:"pemCertificates,omitempty"` // ForceSendFields is a list of field names (e.g. "PemCertificates") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PemCertificates") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SubordinateConfigChain: This message describes a subordinate CA's issuer certificate chain. This wrapper exists for compatibility reasons.
func (*SubordinateConfigChain) MarshalJSON ¶
func (s *SubordinateConfigChain) MarshalJSON() ([]byte, error)
type TestIamPermissionsRequest ¶
type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. // Permissions with wildcards (such as '*' or 'storage.*') are not // allowed. For more information see IAM Overview // (https://cloud.google.com/iam/docs/overview#permissions). Permissions []string `json:"permissions,omitempty"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
func (*TestIamPermissionsRequest) MarshalJSON ¶
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error)
type TestIamPermissionsResponse ¶
type TestIamPermissionsResponse struct { // Permissions: A subset of `TestPermissionsRequest.permissions` that // the caller is allowed. Permissions []string `json:"permissions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Permissions") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Permissions") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TestIamPermissionsResponse: Response message for `TestIamPermissions` method.
func (*TestIamPermissionsResponse) MarshalJSON ¶
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)
type X509Extension ¶
type X509Extension struct { // Critical: Required. Indicates whether or not this extension is // critical (i.e., if the client does not know how to handle this // extension, the client should consider this to be an error). Critical bool `json:"critical,omitempty"` // ObjectId: Required. The OID for this X.509 extension. ObjectId *ObjectId `json:"objectId,omitempty"` // Value: Required. The value of this X.509 extension. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Critical") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Critical") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
X509Extension: An X509Extension specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.
func (*X509Extension) MarshalJSON ¶
func (s *X509Extension) MarshalJSON() ([]byte, error)