servicedirectory
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package servicedirectory provides access to the Service Directory API.
For product documentation, see:https://cloud.google.com/service-directory
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/servicedirectory/v1beta1"...ctx := context.Background()servicedirectoryService, err := servicedirectory.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
servicedirectoryService, err := servicedirectory.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)servicedirectoryService, err := servicedirectory.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type APIService
- type Binding
- type Empty
- type Endpoint
- type Expr
- type GetIamPolicyRequest
- type GetPolicyOptions
- type ListEndpointsResponse
- type ListLocationsResponse
- type ListNamespacesResponse
- type ListServicesResponse
- type Location
- type Namespace
- type Policy
- 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) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
- 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 ProjectsLocationsNamespacesCreateCall
- func (c *ProjectsLocationsNamespacesCreateCall) Context(ctx context.Context) *ProjectsLocationsNamespacesCreateCall
- func (c *ProjectsLocationsNamespacesCreateCall) Do(opts ...googleapi.CallOption) (*Namespace, error)
- func (c *ProjectsLocationsNamespacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesCreateCall
- func (c *ProjectsLocationsNamespacesCreateCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesCreateCall) NamespaceId(namespaceId string) *ProjectsLocationsNamespacesCreateCall
- type ProjectsLocationsNamespacesDeleteCall
- func (c *ProjectsLocationsNamespacesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNamespacesDeleteCall
- func (c *ProjectsLocationsNamespacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsNamespacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesDeleteCall
- func (c *ProjectsLocationsNamespacesDeleteCall) Header() http.Header
- type ProjectsLocationsNamespacesGetCall
- func (c *ProjectsLocationsNamespacesGetCall) Context(ctx context.Context) *ProjectsLocationsNamespacesGetCall
- func (c *ProjectsLocationsNamespacesGetCall) Do(opts ...googleapi.CallOption) (*Namespace, error)
- func (c *ProjectsLocationsNamespacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesGetCall
- func (c *ProjectsLocationsNamespacesGetCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesGetCall
- type ProjectsLocationsNamespacesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) Context(ctx context.Context) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesResponse, error)
- func (c *ProjectsLocationsNamespacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) Filter(filter string) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) OrderBy(orderBy string) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) PageSize(pageSize int64) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) PageToken(pageToken string) *ProjectsLocationsNamespacesListCall
- func (c *ProjectsLocationsNamespacesListCall) Pages(ctx context.Context, f func(*ListNamespacesResponse) error) error
- type ProjectsLocationsNamespacesPatchCall
- func (c *ProjectsLocationsNamespacesPatchCall) Context(ctx context.Context) *ProjectsLocationsNamespacesPatchCall
- func (c *ProjectsLocationsNamespacesPatchCall) Do(opts ...googleapi.CallOption) (*Namespace, error)
- func (c *ProjectsLocationsNamespacesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesPatchCall
- func (c *ProjectsLocationsNamespacesPatchCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNamespacesPatchCall
- type ProjectsLocationsNamespacesService
- func (r *ProjectsLocationsNamespacesService) Create(parent string, namespace *Namespace) *ProjectsLocationsNamespacesCreateCall
- func (r *ProjectsLocationsNamespacesService) Delete(name string) *ProjectsLocationsNamespacesDeleteCall
- func (r *ProjectsLocationsNamespacesService) Get(name string) *ProjectsLocationsNamespacesGetCall
- func (r *ProjectsLocationsNamespacesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesGetIamPolicyCall
- func (r *ProjectsLocationsNamespacesService) List(parent string) *ProjectsLocationsNamespacesListCall
- func (r *ProjectsLocationsNamespacesService) Patch(name string, namespace *Namespace) *ProjectsLocationsNamespacesPatchCall
- func (r *ProjectsLocationsNamespacesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesSetIamPolicyCall
- func (r *ProjectsLocationsNamespacesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesTestIamPermissionsCall
- type ProjectsLocationsNamespacesServicesCreateCall
- func (c *ProjectsLocationsNamespacesServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesCreateCall
- func (c *ProjectsLocationsNamespacesServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error)
- func (c *ProjectsLocationsNamespacesServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesCreateCall
- func (c *ProjectsLocationsNamespacesServicesCreateCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesCreateCall) ServiceId(serviceId string) *ProjectsLocationsNamespacesServicesCreateCall
- type ProjectsLocationsNamespacesServicesDeleteCall
- func (c *ProjectsLocationsNamespacesServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesDeleteCall
- func (c *ProjectsLocationsNamespacesServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsNamespacesServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesDeleteCall
- func (c *ProjectsLocationsNamespacesServicesDeleteCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesEndpointsCreateCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*Endpoint, error)
- func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) EndpointId(endpointId string) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesEndpointsDeleteCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesEndpointsGetCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesEndpointsGetCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Do(opts ...googleapi.CallOption) (*Endpoint, error)
- func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsGetCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesServicesEndpointsGetCall
- type ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Do(opts ...googleapi.CallOption) (*ListEndpointsResponse, error)
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Filter(filter string) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) OrderBy(orderBy string) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Pages(ctx context.Context, f func(*ListEndpointsResponse) error) error
- type ProjectsLocationsNamespacesServicesEndpointsPatchCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*Endpoint, error)
- func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
- func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
- type ProjectsLocationsNamespacesServicesEndpointsService
- func (r *ProjectsLocationsNamespacesServicesEndpointsService) Create(parent string, endpoint *Endpoint) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
- func (r *ProjectsLocationsNamespacesServicesEndpointsService) Delete(name string) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
- func (r *ProjectsLocationsNamespacesServicesEndpointsService) Get(name string) *ProjectsLocationsNamespacesServicesEndpointsGetCall
- func (r *ProjectsLocationsNamespacesServicesEndpointsService) List(parent string) *ProjectsLocationsNamespacesServicesEndpointsListCall
- func (r *ProjectsLocationsNamespacesServicesEndpointsService) Patch(name string, endpoint *Endpoint) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
- type ProjectsLocationsNamespacesServicesGetCall
- func (c *ProjectsLocationsNamespacesServicesGetCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesGetCall
- func (c *ProjectsLocationsNamespacesServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error)
- func (c *ProjectsLocationsNamespacesServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesGetCall
- func (c *ProjectsLocationsNamespacesServicesGetCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesServicesGetCall
- type ProjectsLocationsNamespacesServicesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error)
- func (c *ProjectsLocationsNamespacesServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) Filter(filter string) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) OrderBy(orderBy string) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) PageSize(pageSize int64) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) PageToken(pageToken string) *ProjectsLocationsNamespacesServicesListCall
- func (c *ProjectsLocationsNamespacesServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error
- type ProjectsLocationsNamespacesServicesPatchCall
- func (c *ProjectsLocationsNamespacesServicesPatchCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesPatchCall
- func (c *ProjectsLocationsNamespacesServicesPatchCall) Do(opts ...googleapi.CallOption) (*Service, error)
- func (c *ProjectsLocationsNamespacesServicesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesPatchCall
- func (c *ProjectsLocationsNamespacesServicesPatchCall) Header() http.Header
- func (c *ProjectsLocationsNamespacesServicesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsNamespacesServicesPatchCall
- type ProjectsLocationsNamespacesServicesResolveCall
- func (c *ProjectsLocationsNamespacesServicesResolveCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesResolveCall
- func (c *ProjectsLocationsNamespacesServicesResolveCall) Do(opts ...googleapi.CallOption) (*ResolveServiceResponse, error)
- func (c *ProjectsLocationsNamespacesServicesResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesResolveCall
- func (c *ProjectsLocationsNamespacesServicesResolveCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesService
- func (r *ProjectsLocationsNamespacesServicesService) Create(parent string, service *Service) *ProjectsLocationsNamespacesServicesCreateCall
- func (r *ProjectsLocationsNamespacesServicesService) Delete(name string) *ProjectsLocationsNamespacesServicesDeleteCall
- func (r *ProjectsLocationsNamespacesServicesService) Get(name string) *ProjectsLocationsNamespacesServicesGetCall
- func (r *ProjectsLocationsNamespacesServicesService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
- func (r *ProjectsLocationsNamespacesServicesService) List(parent string) *ProjectsLocationsNamespacesServicesListCall
- func (r *ProjectsLocationsNamespacesServicesService) Patch(name string, service *Service) *ProjectsLocationsNamespacesServicesPatchCall
- func (r *ProjectsLocationsNamespacesServicesService) Resolve(name string, resolveservicerequest *ResolveServiceRequest) *ProjectsLocationsNamespacesServicesResolveCall
- func (r *ProjectsLocationsNamespacesServicesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
- func (r *ProjectsLocationsNamespacesServicesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
- type ProjectsLocationsNamespacesServicesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesServicesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsNamespacesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNamespacesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesWorkloadsService
- func (r *ProjectsLocationsNamespacesWorkloadsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
- func (r *ProjectsLocationsNamespacesWorkloadsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
- func (r *ProjectsLocationsNamespacesWorkloadsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
- type ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)
- func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
- func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Header() http.Header
- type ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
- func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
- func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Header() http.Header
- type ProjectsLocationsService
- type ProjectsService
- type ResolveServiceRequest
- type ResolveServiceResponse
- type Service
- type SetIamPolicyRequest
- type TestIamPermissionsRequest
- type TestIamPermissionsResponse
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAPIService¶
type APIService struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
func New(client *http.Client) (*APIService,error)
New creates a new APIService. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
func NewService(ctxcontext.Context, opts ...option.ClientOption) (*APIService,error)
NewService creates a new APIService.
typeBinding¶
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 principals 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 principals requesting access for a Google Cloud// 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. Does not include identities that come from external identity// providers (IdPs) through identity federation. * `user:{emailid}`: An email// address that represents a specific Google account. For example,// `alice@example.com` . * `serviceAccount:{emailid}`: An email address that// represents a Google service account. For example,// `my-other-app@appspot.gserviceaccount.com`. *// `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An// identifier for a Kubernetes service account// (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts).// For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *// `group:{emailid}`: An email address that represents a Google group. For// example, `admins@example.com`. * `domain:{domain}`: The G Suite domain// (primary) that represents all the users of that domain. For example,// `google.com` or `example.com`. *// `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/sub// ject/{subject_attribute_value}`: A single identity in a workforce identity// pool. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// group/{group_id}`: All workforce identities in a group. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// attribute.{attribute_name}/{attribute_value}`: All workforce identities with// a specific attribute value. *// `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/// *`: All identities in a workforce identity pool. *// `principal://iam.googleapis.com/projects/{project_number}/locations/global/wo// rkloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single// identity in a workload identity pool. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool// group. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}// `: All identities in a workload identity pool with a certain attribute. *// `principalSet://iam.googleapis.com/projects/{project_number}/locations/global// /workloadIdentityPools/{pool_id}/*`: All identities in a workload identity// pool. * `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. *// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool// _id}/subject/{subject_attribute_value}`: Deleted single identity in a// workforce identity pool. For example,// `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-po// ol-id/subject/my-subject-attribute-value`.Members []string `json:"members,omitempty"`// Role: Role that is assigned to the list of `members`, or principals. For// example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview// of the IAM roles and permissions, see the IAM documentation// (https://cloud.google.com/iam/docs/roles-overview). For a list of the// available pre-defined roles, see here// (https://cloud.google.com/iam/docs/understanding-roles).Rolestring `json:"role,omitempty"`// ForceSendFields is a list of field names (e.g. "Condition") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Condition") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Binding: Associates `members`, or principals, with a `role`.
func (Binding)MarshalJSON¶
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeEndpoint¶
type Endpoint struct {// Address: Optional. An IPv4 or IPv6 address. Service Directory rejects bad// addresses like: * `8.8.8` * `8.8.8.8:53` * `test:bad:address` * `[::1]` *// `[::1]:8080` Limited to 45 characters.Addressstring `json:"address,omitempty"`// CreateTime: Output only. The timestamp when the endpoint was created.CreateTimestring `json:"createTime,omitempty"`// Metadata: Optional. Metadata for the endpoint. This data can be consumed by// service clients. Restrictions: * The entire metadata dictionary may contain// up to 512 characters, spread accoss all key-value pairs. Metadata that goes// beyond this limit are rejected * Valid metadata keys have two segments: an// optional prefix and name, separated by a slash (/). The name segment is// required and must be 63 characters or less, beginning and ending with an// alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots// (.), and alphanumerics between. The prefix is optional. If specified, the// prefix must be a DNS subdomain: a series of DNS labels separated by dots// (.), not longer than 253 characters in total, followed by a slash (/).// Metadata that fails to meet these requirements are rejected Note: This field// is equivalent to the `annotations` field in the v1 API. They have the same// syntax and read/write to the same location in Service Directory.Metadata map[string]string `json:"metadata,omitempty"`// Name: Immutable. The resource name for the endpoint in the format// `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.Namestring `json:"name,omitempty"`// Network: Immutable. The Google Compute Engine network (VPC) of the endpoint// in the format `projects//locations/global/networks/*`. The project must be// specified by project number (project id is rejected). Incorrectly formatted// networks are rejected, but no other validation is performed on this field// (ex. network or project existence, reachability, or permissions).Networkstring `json:"network,omitempty"`// Port: Optional. Service Directory rejects values outside of `[0, 65535]`.Portint64 `json:"port,omitempty"`// Uid: Output only. A globally unique identifier (in UUID4 format) for this// endpoint.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. The timestamp when the endpoint was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Address") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Endpoint: An individual endpoint that provides a service. The service mustalready exist to create an endpoint.
func (Endpoint)MarshalJSON¶
typeExpr¶
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.Descriptionstring `json:"description,omitempty"`// Expression: Textual representation of an expression in Common Expression// Language syntax.Expressionstring `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.Locationstring `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.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Expr: Represents a textual expression in the Common Expression Language(CEL) syntax. CEL is a C-like expression language. The syntax and semanticsof CEL are documented athttps://github.com/google/cel-spec. Example(Comparison): title: "Summary size limit" description: "Determines if asummary is less than 100 chars" expression: "document.summary.size() < 100"Example (Equality): title: "Requestor is owner" description: "Determines ifrequestor 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 messagereceived at ' + string(document.create_time)" The exact variables andfunctions that may be referenced within an expression are determined by theservice that evaluates it. See the service documentation for additionalinformation.
func (Expr)MarshalJSON¶
typeGetIamPolicyRequest¶
type GetIamPolicyRequest struct {// Options: OPTIONAL: A `GetPolicyOptions` object for specifying options to// `GetIamPolicy`.Options *GetPolicyOptions `json:"options,omitempty"`// ForceSendFields is a list of field names (e.g. "Options") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Options") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GetIamPolicyRequest: Request message for `GetIamPolicy` method.
func (GetIamPolicyRequest)MarshalJSON¶
func (sGetIamPolicyRequest) MarshalJSON() ([]byte,error)
typeGetPolicyOptions¶
type GetPolicyOptions struct {// RequestedPolicyVersion: Optional. The maximum policy version that will be// used to format the policy. Valid values are 0, 1, and 3. Requests specifying// an invalid value will be rejected. Requests for policies with any// conditional role bindings must specify version 3. Policies with no// conditional role bindings may specify any valid value or leave the field// unset. The policy in the response might use the policy version that you// specified, or it might use a lower policy version. For example, if you// specify version 3, but the policy has no conditional role bindings, the// response uses version 1. To learn which resources support conditions in// their IAM policies, see the IAM documentation// (https://cloud.google.com/iam/help/conditions/resource-policies).RequestedPolicyVersionint64 `json:"requestedPolicyVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestedPolicyVersion") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GetPolicyOptions: Encapsulates settings provided to GetIamPolicy.
func (GetPolicyOptions)MarshalJSON¶
func (sGetPolicyOptions) MarshalJSON() ([]byte,error)
typeListEndpointsResponse¶
type ListEndpointsResponse struct {// Endpoints: The list of endpoints.Endpoints []*Endpoint `json:"endpoints,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Endpoints") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Endpoints") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListEndpointsResponse: The response message forRegistrationService.ListEndpoints.
func (ListEndpointsResponse)MarshalJSON¶
func (sListEndpointsResponse) MarshalJSON() ([]byte,error)
typeListLocationsResponse¶
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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Locations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locations") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListLocationsResponse: The response message for Locations.ListLocations.
func (ListLocationsResponse)MarshalJSON¶
func (sListLocationsResponse) MarshalJSON() ([]byte,error)
typeListNamespacesResponse¶
type ListNamespacesResponse struct {// Namespaces: The list of namespaces.Namespaces []*Namespace `json:"namespaces,omitempty"`// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Namespaces") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Namespaces") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListNamespacesResponse: The response message forRegistrationService.ListNamespaces.
func (ListNamespacesResponse)MarshalJSON¶
func (sListNamespacesResponse) MarshalJSON() ([]byte,error)
typeListServicesResponse¶
type ListServicesResponse struct {// NextPageToken: Token to retrieve the next page of results, or empty if there// are no more results in the list.NextPageTokenstring `json:"nextPageToken,omitempty"`// Services: The list of services.Services []*Service `json:"services,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListServicesResponse: The response message forRegistrationService.ListServices.
func (ListServicesResponse)MarshalJSON¶
func (sListServicesResponse) MarshalJSON() ([]byte,error)
typeLocation¶
type Location struct {// DisplayName: The friendly name for this location, typically a nearby city// name. For example, "Tokyo".DisplayNamestring `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".LocationIdstring `json:"locationId,omitempty"`// Metadata: Service-specific metadata. For example the available capacity at// the given location.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: Resource name for the location, which may vary between// implementations. For example:// "projects/example-project/locations/us-east1"Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Location: A resource that represents a Google Cloud location.
func (Location)MarshalJSON¶
typeNamespace¶
type Namespace struct {// CreateTime: Output only. The timestamp when the namespace was created.CreateTimestring `json:"createTime,omitempty"`// Labels: Optional. Resource labels associated with this namespace. No more// than 64 user labels can be associated with a given resource. Label keys and// values can be no longer than 63 characters.Labels map[string]string `json:"labels,omitempty"`// Name: Immutable. The resource name for the namespace in the format// `projects/*/locations/*/namespaces/*`.Namestring `json:"name,omitempty"`// Uid: Output only. A globally unique identifier (in UUID4 format) for this// namespace.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. The timestamp when the namespace was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Namespace: A container for services. Namespaces allow administrators togroup services together and define permissions for a collection of services.
func (Namespace)MarshalJSON¶
typePolicy¶
type Policy struct {// Bindings: Associates a list of `members`, or principals, with 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// principal. The `bindings` in a `Policy` can refer to up to 1,500 principals;// up to 250 of these principals can be Google groups. Each occurrence of a// principal counts towards these limits. For example, if the `bindings` grant// 50 different roles to `user:alice@example.com`, and not to any other// principal, then you can add another 1,450 principals to the `bindings` in// the `Policy`.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.Etagstring `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).Versionint64 `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. "Bindings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bindings") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Policy: An Identity and Access Management (IAM) policy, which specifiesaccess controls for Google Cloud resources. A `Policy` is a collection of`bindings`. A `binding` binds one or more `members`, or principals, to asingle `role`. Principals can be user accounts, service accounts, Googlegroups, and domains (such as G Suite). A `role` is a named list ofpermissions; each `role` can be an IAM predefined role or a user-createdcustom role. For some types of Google Cloud resources, a `binding` can alsospecify a `condition`, which is a logical expression that allows access to aresource only if the expression evaluates to `true`. A condition can addconstraints based on attributes of the request, the resource, or both. Tolearn which resources support conditions in their IAM policies, see the IAMdocumentation(https://cloud.google.com/iam/help/conditions/resource-policies). **JSONexample:** ``` { "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.comrole: roles/resourcemanager.organizationAdmin - members: -user:eve@example.com role: roles/resourcemanager.organizationViewercondition: title: expirable access description: Does not grant access afterSep 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¶
typeProjectsLocationsGetCall¶
type ProjectsLocationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGetCall)Context¶
func (c *ProjectsLocationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGetCall)Do¶
func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location,error)
Do executes the "servicedirectory.projects.locations.get" call.Any non-2xx status code is an error. Response headers are in either*Location.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsGetCall)Fields¶
func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGetCall)Header¶
func (c *ProjectsLocationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsListCall¶
type ProjectsLocationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsListCall)Context¶
func (c *ProjectsLocationsListCall) Context(ctxcontext.Context) *ProjectsLocationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsListCall)Do¶
func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse,error)
Do executes the "servicedirectory.projects.locations.list" call.Any non-2xx status code is an error. Response headers are in either*ListLocationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsListCall)ExtraLocationTypes¶added inv0.229.0
func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall
ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do notuse this field. It is unsupported and is ignored unless explicitlydocumented otherwise. This is primarily for internal usage.
func (*ProjectsLocationsListCall)Fields¶
func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsListCall)Filter¶
func (c *ProjectsLocationsListCall) Filter(filterstring) *ProjectsLocationsListCall
Filter sets the optional parameter "filter": A filter to narrow down resultsto 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 a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsListCall)PageSize¶
func (c *ProjectsLocationsListCall) PageSize(pageSizeint64) *ProjectsLocationsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofresults to return. If not set, the service selects a default.
func (*ProjectsLocationsListCall)PageToken¶
func (c *ProjectsLocationsListCall) PageToken(pageTokenstring) *ProjectsLocationsListCall
PageToken sets the optional parameter "pageToken": A page token receivedfrom the `next_page_token` field in the response. Send that page token toreceive the subsequent page.
func (*ProjectsLocationsListCall)Pages¶
func (c *ProjectsLocationsListCall) Pages(ctxcontext.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.
typeProjectsLocationsNamespacesCreateCall¶
type ProjectsLocationsNamespacesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesCreateCall)Context¶
func (c *ProjectsLocationsNamespacesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesCreateCall)Do¶
func (c *ProjectsLocationsNamespacesCreateCall) Do(opts ...googleapi.CallOption) (*Namespace,error)
Do executes the "servicedirectory.projects.locations.namespaces.create" call.Any non-2xx status code is an error. Response headers are in either*Namespace.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesCreateCall)Fields¶
func (c *ProjectsLocationsNamespacesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesCreateCall)Header¶
func (c *ProjectsLocationsNamespacesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesCreateCall)NamespaceId¶
func (c *ProjectsLocationsNamespacesCreateCall) NamespaceId(namespaceIdstring) *ProjectsLocationsNamespacesCreateCall
NamespaceId sets the optional parameter "namespaceId": Required. TheResource ID must be 1-63 characters long, and comply with RFC1035.Specifically, the name must be 1-63 characters long and match the regularexpression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the firstcharacter must be a lowercase letter, and all following characters must be adash, lowercase letter, or digit, except the last character, which cannot bea dash.
typeProjectsLocationsNamespacesDeleteCall¶
type ProjectsLocationsNamespacesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesDeleteCall)Context¶
func (c *ProjectsLocationsNamespacesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesDeleteCall)Do¶
func (c *ProjectsLocationsNamespacesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "servicedirectory.projects.locations.namespaces.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesDeleteCall)Fields¶
func (c *ProjectsLocationsNamespacesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesDeleteCall)Header¶
func (c *ProjectsLocationsNamespacesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesGetCall¶
type ProjectsLocationsNamespacesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesGetCall)Context¶
func (c *ProjectsLocationsNamespacesGetCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesGetCall)Do¶
func (c *ProjectsLocationsNamespacesGetCall) Do(opts ...googleapi.CallOption) (*Namespace,error)
Do executes the "servicedirectory.projects.locations.namespaces.get" call.Any non-2xx status code is an error. Response headers are in either*Namespace.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesGetCall)Fields¶
func (c *ProjectsLocationsNamespacesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesGetCall)Header¶
func (c *ProjectsLocationsNamespacesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNamespacesGetIamPolicyCall¶
type ProjectsLocationsNamespacesGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesGetIamPolicyCall)Context¶
func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesGetIamPolicyCall)Do¶
func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesGetIamPolicyCall)Fields¶
func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesGetIamPolicyCall)Header¶
func (c *ProjectsLocationsNamespacesGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesListCall¶
type ProjectsLocationsNamespacesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesListCall)Context¶
func (c *ProjectsLocationsNamespacesListCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesListCall)Do¶
func (c *ProjectsLocationsNamespacesListCall) Do(opts ...googleapi.CallOption) (*ListNamespacesResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.list" call.Any non-2xx status code is an error. Response headers are in either*ListNamespacesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNamespacesListCall)Fields¶
func (c *ProjectsLocationsNamespacesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesListCall)Filter¶
func (c *ProjectsLocationsNamespacesListCall) Filter(filterstring) *ProjectsLocationsNamespacesListCall
Filter sets the optional parameter "filter": The filter to list results by.General `filter` string syntax: ` ()` * “ can be `name`, `labels.` for mapfield, or `attributes.` for attributes field * “ can be `<`, `>`, `<=`,`>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as`=` * “ must be the same data type as field * “ can be `AND`, `OR`, `NOT`Examples of valid filters: * `labels.owner` returns namespaces that have alabel with the key `owner`, this is the same as `labels:owner` *`labels.owner=sd` returns namespaces that have key/value `owner=sd` *`name>projects/my-project/locations/us-east1/namespaces/namespace-c` returnsnamespaces that have name that is alphabetically later than the string, so"namespace-e" is returned but "namespace-a" is not * `labels.owner!=sd ANDlabels.foo=bar` returns namespaces that have `owner` in label key but valueis not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar` returns anempty list. Note that namespace doesn't have a field called "doesnotexist".Since the filter does not match any namespaces, it returns no results *`attributes.managed_registration=true` returns namespaces that are managedby a GCP product or service For more information about filtering, see APIFiltering (https://aip.dev/160).
func (*ProjectsLocationsNamespacesListCall)Header¶
func (c *ProjectsLocationsNamespacesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesListCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNamespacesListCall)OrderBy¶
func (c *ProjectsLocationsNamespacesListCall) OrderBy(orderBystring) *ProjectsLocationsNamespacesListCall
OrderBy sets the optional parameter "orderBy": The order to list results by.General `order_by` string syntax: ` () (,)` * “ allows value: `name` * “ascending or descending order by “. If this is left blank, `asc` is usedNote that an empty `order_by` string results in default order, which isorder by `name` in ascending order.
func (*ProjectsLocationsNamespacesListCall)PageSize¶
func (c *ProjectsLocationsNamespacesListCall) PageSize(pageSizeint64) *ProjectsLocationsNamespacesListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return. The default value is 100.
func (*ProjectsLocationsNamespacesListCall)PageToken¶
func (c *ProjectsLocationsNamespacesListCall) PageToken(pageTokenstring) *ProjectsLocationsNamespacesListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsNamespacesListCall)Pages¶
func (c *ProjectsLocationsNamespacesListCall) Pages(ctxcontext.Context, f func(*ListNamespacesResponse)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.
typeProjectsLocationsNamespacesPatchCall¶
type ProjectsLocationsNamespacesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesPatchCall)Context¶
func (c *ProjectsLocationsNamespacesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesPatchCall)Do¶
func (c *ProjectsLocationsNamespacesPatchCall) Do(opts ...googleapi.CallOption) (*Namespace,error)
Do executes the "servicedirectory.projects.locations.namespaces.patch" call.Any non-2xx status code is an error. Response headers are in either*Namespace.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesPatchCall)Fields¶
func (c *ProjectsLocationsNamespacesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesPatchCall)Header¶
func (c *ProjectsLocationsNamespacesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesPatchCall)UpdateMask¶
func (c *ProjectsLocationsNamespacesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsNamespacesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. List offields to be updated in this request.
typeProjectsLocationsNamespacesService¶
type ProjectsLocationsNamespacesService struct {Services *ProjectsLocationsNamespacesServicesServiceWorkloads *ProjectsLocationsNamespacesWorkloadsService// contains filtered or unexported fields}funcNewProjectsLocationsNamespacesService¶
func NewProjectsLocationsNamespacesService(s *APIService) *ProjectsLocationsNamespacesService
func (*ProjectsLocationsNamespacesService)Create¶
func (r *ProjectsLocationsNamespacesService) Create(parentstring, namespace *Namespace) *ProjectsLocationsNamespacesCreateCall
Create: Creates a namespace, and returns the new namespace.
- parent: The resource name of the project and location the namespace willbe created in.
func (*ProjectsLocationsNamespacesService)Delete¶
func (r *ProjectsLocationsNamespacesService) Delete(namestring) *ProjectsLocationsNamespacesDeleteCall
Delete: Deletes a namespace. This also deletes all services and endpoints inthe namespace.
- name: The name of the namespace to delete.
func (*ProjectsLocationsNamespacesService)Get¶
func (r *ProjectsLocationsNamespacesService) Get(namestring) *ProjectsLocationsNamespacesGetCall
Get: Gets a namespace.
- name: The name of the namespace to retrieve.
func (*ProjectsLocationsNamespacesService)GetIamPolicy¶
func (r *ProjectsLocationsNamespacesService) GetIamPolicy(resourcestring, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesGetIamPolicyCall
GetIamPolicy: Gets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesService)List¶
func (r *ProjectsLocationsNamespacesService) List(parentstring) *ProjectsLocationsNamespacesListCall
List: Lists all namespaces.
- parent: The resource name of the project and location whose namespacesyou'd like to list.
func (*ProjectsLocationsNamespacesService)Patch¶
func (r *ProjectsLocationsNamespacesService) Patch(namestring, namespace *Namespace) *ProjectsLocationsNamespacesPatchCall
Patch: Updates a namespace.
- name: Immutable. The resource name for the namespace in the format`projects/*/locations/*/namespaces/*`.
func (*ProjectsLocationsNamespacesService)SetIamPolicy¶
func (r *ProjectsLocationsNamespacesService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesSetIamPolicyCall
SetIamPolicy: Sets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesService)TestIamPermissions¶
func (r *ProjectsLocationsNamespacesService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesTestIamPermissionsCall
TestIamPermissions: Tests IAM permissions for a resource (namespace, serviceor service workload only).
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
typeProjectsLocationsNamespacesServicesCreateCall¶
type ProjectsLocationsNamespacesServicesCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesCreateCall)Context¶
func (c *ProjectsLocationsNamespacesServicesCreateCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesCreateCall)Do¶
func (c *ProjectsLocationsNamespacesServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.create" call.Any non-2xx status code is an error. Response headers are in either*Service.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesCreateCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesCreateCall)Header¶
func (c *ProjectsLocationsNamespacesServicesCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesCreateCall)ServiceId¶
func (c *ProjectsLocationsNamespacesServicesCreateCall) ServiceId(serviceIdstring) *ProjectsLocationsNamespacesServicesCreateCall
ServiceId sets the optional parameter "serviceId": Required. The Resource IDmust be 1-63 characters long, and comply with RFC1035. Specifically, thename must be 1-63 characters long and match the regular expression`[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must bea lowercase letter, and all following characters must be a dash, lowercaseletter, or digit, except the last character, which cannot be a dash.
typeProjectsLocationsNamespacesServicesDeleteCall¶
type ProjectsLocationsNamespacesServicesDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesDeleteCall)Context¶
func (c *ProjectsLocationsNamespacesServicesDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesDeleteCall)Do¶
func (c *ProjectsLocationsNamespacesServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesDeleteCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesDeleteCall)Header¶
func (c *ProjectsLocationsNamespacesServicesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesEndpointsCreateCall¶
type ProjectsLocationsNamespacesServicesEndpointsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesEndpointsCreateCall)Context¶
func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesEndpointsCreateCall)Do¶
func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*Endpoint,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.create" call.Any non-2xx status code is an error. Response headers are in either*Endpoint.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesEndpointsCreateCall)EndpointId¶
func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) EndpointId(endpointIdstring) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
EndpointId sets the optional parameter "endpointId": Required. The ResourceID must be 1-63 characters long, and comply with RFC1035. Specifically, thename must be 1-63 characters long and match the regular expression`[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must bea lowercase letter, and all following characters must be a dash, lowercaseletter, or digit, except the last character, which cannot be a dash.
func (*ProjectsLocationsNamespacesServicesEndpointsCreateCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesEndpointsCreateCall)Header¶
func (c *ProjectsLocationsNamespacesServicesEndpointsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesEndpointsDeleteCall¶
type ProjectsLocationsNamespacesServicesEndpointsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesEndpointsDeleteCall)Context¶
func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesEndpointsDeleteCall)Do¶
func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesEndpointsDeleteCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesEndpointsDeleteCall)Header¶
func (c *ProjectsLocationsNamespacesServicesEndpointsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesEndpointsGetCall¶
type ProjectsLocationsNamespacesServicesEndpointsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesEndpointsGetCall)Context¶
func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesEndpointsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesEndpointsGetCall)Do¶
func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Do(opts ...googleapi.CallOption) (*Endpoint,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.get" call.Any non-2xx status code is an error. Response headers are in either*Endpoint.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesEndpointsGetCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesEndpointsGetCall)Header¶
func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesEndpointsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesServicesEndpointsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesServicesEndpointsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNamespacesServicesEndpointsListCall¶
type ProjectsLocationsNamespacesServicesEndpointsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Context¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesEndpointsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Do¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Do(opts ...googleapi.CallOption) (*ListEndpointsResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.list" call.Any non-2xx status code is an error. Response headers are in either*ListEndpointsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Filter¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Filter(filterstring) *ProjectsLocationsNamespacesServicesEndpointsListCall
Filter sets the optional parameter "filter": The filter to list results by.General `filter` string syntax: ` ()` * “ can be `name`, `address`, `port`,`metadata.` for map field, or `attributes.` for attributes field * “ can be`<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and isroughly the same as `=` * “ must be the same data type as field * “ can be`AND`, `OR`, `NOT` Examples of valid filters: * `metadata.owner` returnsendpoints that have a metadata with the key `owner`, this is the same as`metadata:owner` * `metadata.protocol=gRPC` returns endpoints that havekey/value `protocol=gRPC` * `address=192.108.1.105` returns endpoints thathave this address * `port>8080` returns endpoints that have port numberlarger than 8080 *`name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c` returns endpoints that have name that isalphabetically later than the string, so "endpoint-e" is returned but"endpoint-a" is not * `metadata.owner!=sd AND metadata.foo=bar` returnsendpoints that have `owner` in metadata key but value is not `sd` AND havekey/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Notethat endpoint doesn't have a field called "doesnotexist". Since the filterdoes not match any endpoints, it returns no results *`attributes.kubernetes_resource_type=KUBERNETES_RESOURCE_TYPE_CLUSTER_ IP`returns endpoints with the corresponding kubernetes_resource_type For moreinformation about filtering, see API Filtering (https://aip.dev/160).
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Header¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesServicesEndpointsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)OrderBy¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) OrderBy(orderBystring) *ProjectsLocationsNamespacesServicesEndpointsListCall
OrderBy sets the optional parameter "orderBy": The order to list results by.General `order_by` string syntax: ` () (,)` * “ allows values: `name`,`address`, `port` * “ ascending or descending order by “. If this is leftblank, `asc` is used Note that an empty `order_by` string results in defaultorder, which is order by `name` in ascending order.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)PageSize¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) PageSize(pageSizeint64) *ProjectsLocationsNamespacesServicesEndpointsListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return. The default value is 100.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)PageToken¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) PageToken(pageTokenstring) *ProjectsLocationsNamespacesServicesEndpointsListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsNamespacesServicesEndpointsListCall)Pages¶
func (c *ProjectsLocationsNamespacesServicesEndpointsListCall) Pages(ctxcontext.Context, f func(*ListEndpointsResponse)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.
typeProjectsLocationsNamespacesServicesEndpointsPatchCall¶
type ProjectsLocationsNamespacesServicesEndpointsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesEndpointsPatchCall)Context¶
func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesEndpointsPatchCall)Do¶
func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*Endpoint,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.endpoints.patch" call.Any non-2xx status code is an error. Response headers are in either*Endpoint.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesEndpointsPatchCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesEndpointsPatchCall)Header¶
func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesEndpointsPatchCall)UpdateMask¶
func (c *ProjectsLocationsNamespacesServicesEndpointsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. List offields to be updated in this request.
typeProjectsLocationsNamespacesServicesEndpointsService¶
type ProjectsLocationsNamespacesServicesEndpointsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsNamespacesServicesEndpointsService¶
func NewProjectsLocationsNamespacesServicesEndpointsService(s *APIService) *ProjectsLocationsNamespacesServicesEndpointsService
func (*ProjectsLocationsNamespacesServicesEndpointsService)Create¶
func (r *ProjectsLocationsNamespacesServicesEndpointsService) Create(parentstring, endpoint *Endpoint) *ProjectsLocationsNamespacesServicesEndpointsCreateCall
Create: Creates an endpoint, and returns the new endpoint.
- parent: The resource name of the service that this endpoint provides.
func (*ProjectsLocationsNamespacesServicesEndpointsService)Delete¶
func (r *ProjectsLocationsNamespacesServicesEndpointsService) Delete(namestring) *ProjectsLocationsNamespacesServicesEndpointsDeleteCall
Delete: Deletes an endpoint.
- name: The name of the endpoint to delete.
func (*ProjectsLocationsNamespacesServicesEndpointsService)Get¶
func (r *ProjectsLocationsNamespacesServicesEndpointsService) Get(namestring) *ProjectsLocationsNamespacesServicesEndpointsGetCall
Get: Gets an endpoint.
- name: The name of the endpoint to get.
func (*ProjectsLocationsNamespacesServicesEndpointsService)List¶
func (r *ProjectsLocationsNamespacesServicesEndpointsService) List(parentstring) *ProjectsLocationsNamespacesServicesEndpointsListCall
List: Lists all endpoints.
- parent: The resource name of the service whose endpoints you'd like tolist.
func (*ProjectsLocationsNamespacesServicesEndpointsService)Patch¶
func (r *ProjectsLocationsNamespacesServicesEndpointsService) Patch(namestring, endpoint *Endpoint) *ProjectsLocationsNamespacesServicesEndpointsPatchCall
Patch: Updates an endpoint.
- name: Immutable. The resource name for the endpoint in the format`projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
typeProjectsLocationsNamespacesServicesGetCall¶
type ProjectsLocationsNamespacesServicesGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesGetCall)Context¶
func (c *ProjectsLocationsNamespacesServicesGetCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesGetCall)Do¶
func (c *ProjectsLocationsNamespacesServicesGetCall) Do(opts ...googleapi.CallOption) (*Service,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.get" call.Any non-2xx status code is an error. Response headers are in either*Service.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesGetCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesGetCall)Header¶
func (c *ProjectsLocationsNamespacesServicesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesGetCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesServicesGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesServicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsLocationsNamespacesServicesGetIamPolicyCall¶
type ProjectsLocationsNamespacesServicesGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesGetIamPolicyCall)Context¶
func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesGetIamPolicyCall)Do¶
func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesGetIamPolicyCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesGetIamPolicyCall)Header¶
func (c *ProjectsLocationsNamespacesServicesGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesListCall¶
type ProjectsLocationsNamespacesServicesListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesListCall)Context¶
func (c *ProjectsLocationsNamespacesServicesListCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesListCall)Do¶
func (c *ProjectsLocationsNamespacesServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.list" call.Any non-2xx status code is an error. Response headers are in either*ListServicesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNamespacesServicesListCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesListCall)Filter¶
func (c *ProjectsLocationsNamespacesServicesListCall) Filter(filterstring) *ProjectsLocationsNamespacesServicesListCall
Filter sets the optional parameter "filter": The filter to list results by.General `filter` string syntax: ` ()` * “ can be `name` or `metadata.` formap field * “ can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`means `HAS`, and is roughly the same as `=` * “ must be the same data typeas field * “ can be `AND`, `OR`, `NOT` Examples of valid filters: *`metadata.owner` returns services that have a metadata with the key `owner`,this is the same as `metadata:owner` * `metadata.protocol=gRPC` returnsservices that have key/value `protocol=gRPC` *`name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c` returns services that have name that is alphabetically laterthan the string, so "service-e" is returned but "service-a" is not *`metadata.owner!=sd AND metadata.foo=bar` returns services that have `owner`in metadata key but value is not `sd` AND have key/value `foo=bar` *`doesnotexist.foo=bar` returns an empty list. Note that service doesn't havea field called "doesnotexist". Since the filter does not match any services,it returns no results * `attributes.managed_registration=true` returnsservices that are managed by a GCP product or service For more informationabout filtering, see API Filtering (https://aip.dev/160).
func (*ProjectsLocationsNamespacesServicesListCall)Header¶
func (c *ProjectsLocationsNamespacesServicesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesListCall)IfNoneMatch¶
func (c *ProjectsLocationsNamespacesServicesListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsNamespacesServicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsLocationsNamespacesServicesListCall)OrderBy¶
func (c *ProjectsLocationsNamespacesServicesListCall) OrderBy(orderBystring) *ProjectsLocationsNamespacesServicesListCall
OrderBy sets the optional parameter "orderBy": The order to list results by.General `order_by` string syntax: ` () (,)` * “ allows value: `name` * “ascending or descending order by “. If this is left blank, `asc` is usedNote that an empty `order_by` string results in default order, which isorder by `name` in ascending order.
func (*ProjectsLocationsNamespacesServicesListCall)PageSize¶
func (c *ProjectsLocationsNamespacesServicesListCall) PageSize(pageSizeint64) *ProjectsLocationsNamespacesServicesListCall
PageSize sets the optional parameter "pageSize": The maximum number of itemsto return. The default value is 100.
func (*ProjectsLocationsNamespacesServicesListCall)PageToken¶
func (c *ProjectsLocationsNamespacesServicesListCall) PageToken(pageTokenstring) *ProjectsLocationsNamespacesServicesListCall
PageToken sets the optional parameter "pageToken": The next_page_token valuereturned from a previous List request, if any.
func (*ProjectsLocationsNamespacesServicesListCall)Pages¶
func (c *ProjectsLocationsNamespacesServicesListCall) Pages(ctxcontext.Context, f func(*ListServicesResponse)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.
typeProjectsLocationsNamespacesServicesPatchCall¶
type ProjectsLocationsNamespacesServicesPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesPatchCall)Context¶
func (c *ProjectsLocationsNamespacesServicesPatchCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesPatchCall)Do¶
func (c *ProjectsLocationsNamespacesServicesPatchCall) Do(opts ...googleapi.CallOption) (*Service,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.patch" call.Any non-2xx status code is an error. Response headers are in either*Service.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesPatchCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesPatchCall)Header¶
func (c *ProjectsLocationsNamespacesServicesPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsNamespacesServicesPatchCall)UpdateMask¶
func (c *ProjectsLocationsNamespacesServicesPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsNamespacesServicesPatchCall
UpdateMask sets the optional parameter "updateMask": Required. List offields to be updated in this request.
typeProjectsLocationsNamespacesServicesResolveCall¶
type ProjectsLocationsNamespacesServicesResolveCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesResolveCall)Context¶
func (c *ProjectsLocationsNamespacesServicesResolveCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesResolveCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesResolveCall)Do¶
func (c *ProjectsLocationsNamespacesServicesResolveCall) Do(opts ...googleapi.CallOption) (*ResolveServiceResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.resolve" call.Any non-2xx status code is an error. Response headers are in either*ResolveServiceResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsNamespacesServicesResolveCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesResolveCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesResolveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesResolveCall)Header¶
func (c *ProjectsLocationsNamespacesServicesResolveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesService¶
type ProjectsLocationsNamespacesServicesService struct {Endpoints *ProjectsLocationsNamespacesServicesEndpointsService// contains filtered or unexported fields}funcNewProjectsLocationsNamespacesServicesService¶
func NewProjectsLocationsNamespacesServicesService(s *APIService) *ProjectsLocationsNamespacesServicesService
func (*ProjectsLocationsNamespacesServicesService)Create¶
func (r *ProjectsLocationsNamespacesServicesService) Create(parentstring, service *Service) *ProjectsLocationsNamespacesServicesCreateCall
Create: Creates a service, and returns the new service.
- parent: The resource name of the namespace this service will belong to.
func (*ProjectsLocationsNamespacesServicesService)Delete¶
func (r *ProjectsLocationsNamespacesServicesService) Delete(namestring) *ProjectsLocationsNamespacesServicesDeleteCall
Delete: Deletes a service. This also deletes all endpoints associated withthe service.
- name: The name of the service to delete.
func (*ProjectsLocationsNamespacesServicesService)Get¶
func (r *ProjectsLocationsNamespacesServicesService) Get(namestring) *ProjectsLocationsNamespacesServicesGetCall
Get: Gets a service.
- name: The name of the service to get.
func (*ProjectsLocationsNamespacesServicesService)GetIamPolicy¶
func (r *ProjectsLocationsNamespacesServicesService) GetIamPolicy(resourcestring, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesServicesGetIamPolicyCall
GetIamPolicy: Gets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesServicesService)List¶
func (r *ProjectsLocationsNamespacesServicesService) List(parentstring) *ProjectsLocationsNamespacesServicesListCall
List: Lists all services belonging to a namespace.
- parent: The resource name of the namespace whose services you'd like tolist.
func (*ProjectsLocationsNamespacesServicesService)Patch¶
func (r *ProjectsLocationsNamespacesServicesService) Patch(namestring, service *Service) *ProjectsLocationsNamespacesServicesPatchCall
Patch: Updates a service.
- name: Immutable. The resource name for the service in the format`projects/*/locations/*/namespaces/*/services/*`.
func (*ProjectsLocationsNamespacesServicesService)Resolve¶
func (r *ProjectsLocationsNamespacesServicesService) Resolve(namestring, resolveservicerequest *ResolveServiceRequest) *ProjectsLocationsNamespacesServicesResolveCall
Resolve: Returns a service and its associated endpoints. Resolving a serviceis not considered an active developer method.
- name: The name of the service to resolve.
func (*ProjectsLocationsNamespacesServicesService)SetIamPolicy¶
func (r *ProjectsLocationsNamespacesServicesService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
SetIamPolicy: Sets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesServicesService)TestIamPermissions¶
func (r *ProjectsLocationsNamespacesServicesService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
TestIamPermissions: Tests IAM permissions for a resource (namespace, serviceor service workload only).
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
typeProjectsLocationsNamespacesServicesSetIamPolicyCall¶
type ProjectsLocationsNamespacesServicesSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesSetIamPolicyCall)Context¶
func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesSetIamPolicyCall)Do¶
func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesSetIamPolicyCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesSetIamPolicyCall)Header¶
func (c *ProjectsLocationsNamespacesServicesSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesServicesTestIamPermissionsCall¶
type ProjectsLocationsNamespacesServicesTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesServicesTestIamPermissionsCall)Context¶
func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesServicesTestIamPermissionsCall)Do¶
func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.services.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesServicesTestIamPermissionsCall)Fields¶
func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesServicesTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesServicesTestIamPermissionsCall)Header¶
func (c *ProjectsLocationsNamespacesServicesTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesSetIamPolicyCall¶
type ProjectsLocationsNamespacesSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesSetIamPolicyCall)Context¶
func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesSetIamPolicyCall)Do¶
func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesSetIamPolicyCall)Fields¶
func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesSetIamPolicyCall)Header¶
func (c *ProjectsLocationsNamespacesSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesTestIamPermissionsCall¶
type ProjectsLocationsNamespacesTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesTestIamPermissionsCall)Context¶
func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesTestIamPermissionsCall)Do¶
func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesTestIamPermissionsCall)Fields¶
func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesTestIamPermissionsCall)Header¶
func (c *ProjectsLocationsNamespacesTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesWorkloadsGetIamPolicyCall¶added inv0.111.0
type ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall)Context¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall)Do¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.workloads.getIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall)Header¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesWorkloadsService¶added inv0.111.0
type ProjectsLocationsNamespacesWorkloadsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsNamespacesWorkloadsService¶added inv0.111.0
func NewProjectsLocationsNamespacesWorkloadsService(s *APIService) *ProjectsLocationsNamespacesWorkloadsService
func (*ProjectsLocationsNamespacesWorkloadsService)GetIamPolicy¶added inv0.111.0
func (r *ProjectsLocationsNamespacesWorkloadsService) GetIamPolicy(resourcestring, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsNamespacesWorkloadsGetIamPolicyCall
GetIamPolicy: Gets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being requested.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesWorkloadsService)SetIamPolicy¶added inv0.111.0
func (r *ProjectsLocationsNamespacesWorkloadsService) SetIamPolicy(resourcestring, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
SetIamPolicy: Sets the IAM Policy for a resource
- resource: REQUIRED: The resource for which the policy is being specified.See Resource names (https://cloud.google.com/apis/design/resource_names)for the appropriate value for this field.
func (*ProjectsLocationsNamespacesWorkloadsService)TestIamPermissions¶added inv0.111.0
func (r *ProjectsLocationsNamespacesWorkloadsService) TestIamPermissions(resourcestring, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
TestIamPermissions: Tests IAM permissions for a resource (namespace, serviceor service workload only).
- resource: REQUIRED: The resource for which the policy detail is beingrequested. See Resource names(https://cloud.google.com/apis/design/resource_names) for the appropriatevalue for this field.
typeProjectsLocationsNamespacesWorkloadsSetIamPolicyCall¶added inv0.111.0
type ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall)Context¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall)Do¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,error)
Do executes the "servicedirectory.projects.locations.namespaces.workloads.setIamPolicy" call.Any non-2xx status code is an error. Response headers are in either*Policy.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall)Header¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsSetIamPolicyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall¶added inv0.111.0
type ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall)Context¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Context(ctxcontext.Context) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall)Do¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse,error)
Do executes the "servicedirectory.projects.locations.namespaces.workloads.testIamPermissions" call.Any non-2xx status code is an error. Response headers are in either*TestIamPermissionsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall)Fields¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall)Header¶added inv0.111.0
func (c *ProjectsLocationsNamespacesWorkloadsTestIamPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Namespaces *ProjectsLocationsNamespacesService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService
func (*ProjectsLocationsService)Get¶
func (r *ProjectsLocationsService) Get(namestring) *ProjectsLocationsGetCall
Get: Gets information about a location.
- name: Resource name for the location.
func (*ProjectsLocationsService)List¶
func (r *ProjectsLocationsService) List(namestring) *ProjectsLocationsListCall
List: Lists information about the supported locations for this service.
- name: The resource that owns the locations collection, if applicable.
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *APIService) *ProjectsService
typeResolveServiceRequest¶
type ResolveServiceRequest struct {// EndpointFilter: Optional. The filter applied to the endpoints of the// resolved service. General `filter` string syntax: ` ()` * “ can be `name`,// `address`, `port`, or `metadata.` for map field * “ can be `<`, `>`, `<=`,// `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as// `=` * “ must be the same data type as field * “ can be `AND`, `OR`, `NOT`// Examples of valid filters: * `metadata.owner` returns endpoints that have a// annotation with the key `owner`, this is the same as `metadata:owner` *// `metadata.protocol=gRPC` returns endpoints that have key/value// `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this// address * `port>8080` returns endpoints that have port number larger than// 8080 *// `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services// /my-service/endpoints/endpoint-c` returns endpoints that have name that is// alphabetically later than the string, so "endpoint-e" is returned but// "endpoint-a" is not *// `name=projects/my-project/locations/us-central1/namespaces/my-namespace/servi// ces/my-service/endpoints/ep-1` returns the endpoint that has an endpoint_id// equal to `ep-1` * `metadata.owner!=sd AND metadata.foo=bar` returns// endpoints that have `owner` in annotation key but value is not `sd` AND have// key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note// that endpoint doesn't have a field called "doesnotexist". Since the filter// does not match any endpoint, it returns no results For more information// about filtering, see API Filtering (https://aip.dev/160).EndpointFilterstring `json:"endpointFilter,omitempty"`// MaxEndpoints: Optional. The maximum number of endpoints to return. Defaults// to 25. Maximum is 100. If a value less than one is specified, the Default is// used. If a value greater than the Maximum is specified, the Maximum is used.MaxEndpointsint64 `json:"maxEndpoints,omitempty"`// ForceSendFields is a list of field names (e.g. "EndpointFilter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndpointFilter") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ResolveServiceRequest: The request message for LookupService.ResolveService.Looks up a service by its name, returns the service and its endpoints.
func (ResolveServiceRequest)MarshalJSON¶
func (sResolveServiceRequest) MarshalJSON() ([]byte,error)
typeResolveServiceResponse¶
type ResolveServiceResponse struct {Service *Service `json:"service,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Service") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Service") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ResolveServiceResponse: The response message forLookupService.ResolveService.
func (ResolveServiceResponse)MarshalJSON¶
func (sResolveServiceResponse) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {// CreateTime: Output only. The timestamp when the service was created.CreateTimestring `json:"createTime,omitempty"`// Endpoints: Output only. Endpoints associated with this service. Returned on// LookupService.ResolveService. Control plane clients should use// RegistrationService.ListEndpoints.Endpoints []*Endpoint `json:"endpoints,omitempty"`// Metadata: Optional. Metadata for the service. This data can be consumed by// service clients. Restrictions: * The entire metadata dictionary may contain// up to 2000 characters, spread accoss all key-value pairs. Metadata that goes// beyond this limit are rejected * Valid metadata keys have two segments: an// optional prefix and name, separated by a slash (/). The name segment is// required and must be 63 characters or less, beginning and ending with an// alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots// (.), and alphanumerics between. The prefix is optional. If specified, the// prefix must be a DNS subdomain: a series of DNS labels separated by dots// (.), not longer than 253 characters in total, followed by a slash (/).// Metadata that fails to meet these requirements are rejected Note: This field// is equivalent to the `annotations` field in the v1 API. They have the same// syntax and read/write to the same location in Service Directory.Metadata map[string]string `json:"metadata,omitempty"`// Name: Immutable. The resource name for the service in the format// `projects/*/locations/*/namespaces/*/services/*`.Namestring `json:"name,omitempty"`// Uid: Output only. A globally unique identifier (in UUID4 format) for this// service.Uidstring `json:"uid,omitempty"`// UpdateTime: Output only. The timestamp when the service was last updated.// Note: endpoints being created/deleted/updated within the service are not// considered service updates for the purpose of this timestamp.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Service: An individual service. A service contains a name and optionalmetadata. A service must exist before endpoints can be added to it.
func (Service)MarshalJSON¶
typeSetIamPolicyRequest¶
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 Google Cloud services (such as Projects) might reject// them.Policy *Policy `json:"policy,omitempty"`// ForceSendFields is a list of field names (e.g. "Policy") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Policy") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SetIamPolicyRequest: Request message for `SetIamPolicy` method.
func (SetIamPolicyRequest)MarshalJSON¶
func (sSetIamPolicyRequest) MarshalJSON() ([]byte,error)
typeTestIamPermissionsRequest¶
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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
func (TestIamPermissionsRequest)MarshalJSON¶
func (sTestIamPermissionsRequest) MarshalJSON() ([]byte,error)
typeTestIamPermissionsResponse¶
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 or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permissions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TestIamPermissionsResponse: Response message for `TestIamPermissions`method.
func (TestIamPermissionsResponse)MarshalJSON¶
func (sTestIamPermissionsResponse) MarshalJSON() ([]byte,error)