Documentation
¶
Overview ¶
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package iam defines operations in the declarative SDK.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package iam includes tools for setting and getting policies, bindings, and members of IAM policies in the DCL.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2026 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- func DCLRoleSchema() *dcl.Schema
- func DCLServiceAccountSchema() *dcl.Schema
- func DCLWorkforcePoolProviderSchema() *dcl.Schema
- func DCLWorkforcePoolSchema() *dcl.Schema
- func DCLWorkloadIdentityPoolProviderSchema() *dcl.Schema
- func DCLWorkloadIdentityPoolSchema() *dcl.Schema
- func EncodeIAMCreateRequest(m map[string]any, resourceName, idField string) map[string]any
- func EncodeRoleCreateRequest(m map[string]any) map[string]any
- func EncodeServiceAccountCreateRequest(m map[string]any) map[string]any
- type Binding
- type Client
- func (c *Client) ApplyBinding(ctx context.Context, binding *Binding, opts ...dcl.ApplyOption) (*Binding, error)
- func (c *Client) ApplyMember(ctx context.Context, member *Member, opts ...dcl.ApplyOption) (*Member, error)
- func (c *Client) ApplyRole(ctx context.Context, rawDesired *Role, opts ...dcl.ApplyOption) (*Role, error)
- func (c *Client) ApplyServiceAccount(ctx context.Context, rawDesired *ServiceAccount, opts ...dcl.ApplyOption) (*ServiceAccount, error)
- func (c *Client) ApplyWorkforcePool(ctx context.Context, rawDesired *WorkforcePool, opts ...dcl.ApplyOption) (*WorkforcePool, error)
- func (c *Client) ApplyWorkforcePoolProvider(ctx context.Context, rawDesired *WorkforcePoolProvider, ...) (*WorkforcePoolProvider, error)
- func (c *Client) ApplyWorkloadIdentityPool(ctx context.Context, rawDesired *WorkloadIdentityPool, opts ...dcl.ApplyOption) (*WorkloadIdentityPool, error)
- func (c *Client) ApplyWorkloadIdentityPoolProvider(ctx context.Context, rawDesired *WorkloadIdentityPoolProvider, ...) (*WorkloadIdentityPoolProvider, error)
- func (c *Client) DeleteAllRole(ctx context.Context, parent string, filter func(*Role) bool) error
- func (c *Client) DeleteAllServiceAccount(ctx context.Context, project string, filter func(*ServiceAccount) bool) error
- func (c *Client) DeleteAllWorkforcePool(ctx context.Context, location, parent string, filter func(*WorkforcePool) bool) error
- func (c *Client) DeleteAllWorkforcePoolProvider(ctx context.Context, location, workforcePool string, ...) error
- func (c *Client) DeleteAllWorkloadIdentityPool(ctx context.Context, project, location string, ...) error
- func (c *Client) DeleteAllWorkloadIdentityPoolProvider(ctx context.Context, project, location, workloadIdentityPool string, ...) error
- func (c *Client) DeleteBinding(ctx context.Context, binding *Binding) error
- func (c *Client) DeleteMember(ctx context.Context, member *Member) error
- func (c *Client) DeleteRole(ctx context.Context, r *Role) error
- func (c *Client) DeleteServiceAccount(ctx context.Context, r *ServiceAccount) error
- func (c *Client) DeleteWorkforcePool(ctx context.Context, r *WorkforcePool) error
- func (c *Client) DeleteWorkforcePoolProvider(ctx context.Context, r *WorkforcePoolProvider) error
- func (c *Client) DeleteWorkloadIdentityPool(ctx context.Context, r *WorkloadIdentityPool) error
- func (c *Client) DeleteWorkloadIdentityPoolProvider(ctx context.Context, r *WorkloadIdentityPoolProvider) error
- func (c *Client) GetBinding(ctx context.Context, r ResourceWithPolicy, role string) (*Binding, error)
- func (c *Client) GetMember(ctx context.Context, r ResourceWithPolicy, role, member string) (*Member, error)
- func (c *Client) GetPolicy(ctx context.Context, r ResourceWithPolicy) (*Policy, error)
- func (c *Client) GetRole(ctx context.Context, r *Role) (*Role, error)
- func (c *Client) GetServiceAccount(ctx context.Context, r *ServiceAccount) (*ServiceAccount, error)
- func (c *Client) GetWorkforcePool(ctx context.Context, r *WorkforcePool) (*WorkforcePool, error)
- func (c *Client) GetWorkforcePoolProvider(ctx context.Context, r *WorkforcePoolProvider) (*WorkforcePoolProvider, error)
- func (c *Client) GetWorkloadIdentityPool(ctx context.Context, r *WorkloadIdentityPool) (*WorkloadIdentityPool, error)
- func (c *Client) GetWorkloadIdentityPoolProvider(ctx context.Context, r *WorkloadIdentityPoolProvider) (*WorkloadIdentityPoolProvider, error)
- func (c *Client) ListRole(ctx context.Context, parent string) (*RoleList, error)
- func (c *Client) ListRoleWithMaxResults(ctx context.Context, parent string, pageSize int32) (*RoleList, error)
- func (c *Client) ListServiceAccount(ctx context.Context, project string) (*ServiceAccountList, error)
- func (c *Client) ListServiceAccountWithMaxResults(ctx context.Context, project string, pageSize int32) (*ServiceAccountList, error)
- func (c *Client) ListWorkforcePool(ctx context.Context, location, parent string) (*WorkforcePoolList, error)
- func (c *Client) ListWorkforcePoolProvider(ctx context.Context, location, workforcePool string) (*WorkforcePoolProviderList, error)
- func (c *Client) ListWorkforcePoolProviderWithMaxResults(ctx context.Context, location, workforcePool string, pageSize int32) (*WorkforcePoolProviderList, error)
- func (c *Client) ListWorkforcePoolWithMaxResults(ctx context.Context, location, parent string, pageSize int32) (*WorkforcePoolList, error)
- func (c *Client) ListWorkloadIdentityPool(ctx context.Context, project, location string) (*WorkloadIdentityPoolList, error)
- func (c *Client) ListWorkloadIdentityPoolProvider(ctx context.Context, project, location, workloadIdentityPool string) (*WorkloadIdentityPoolProviderList, error)
- func (c *Client) ListWorkloadIdentityPoolProviderWithMaxResults(ctx context.Context, project, location, workloadIdentityPool string, ...) (*WorkloadIdentityPoolProviderList, error)
- func (c *Client) ListWorkloadIdentityPoolWithMaxResults(ctx context.Context, project, location string, pageSize int32) (*WorkloadIdentityPoolList, error)
- func (c *Client) SetBinding(ctx context.Context, b *Binding) (*Policy, error)
- func (c *Client) SetMember(ctx context.Context, m *Member) (*Policy, error)
- func (c *Client) SetPolicy(ctx context.Context, p *Policy) (*Policy, error)
- func (c *Client) SetPolicyWithEtag(ctx context.Context, p *Policy) (*Policy, error)
- type Condition
- type Member
- type Policy
- type ResourceWithPolicy
- type Role
- type RoleList
- type RoleLocalizedValues
- type RoleStageEnum
- type ServiceAccount
- func (r *ServiceAccount) Describe() dcl.ServiceTypeVersion
- func (r *ServiceAccount) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)
- func (r *ServiceAccount) IAMPolicyVersion() int
- func (r *ServiceAccount) ID() (string, error)
- func (r *ServiceAccount) SetPolicyURL(userBasePath string) string
- func (r *ServiceAccount) SetPolicyVerb() string
- func (r *ServiceAccount) String() string
- type ServiceAccountActasResources
- type ServiceAccountActasResourcesResources
- type ServiceAccountList
- type WorkforcePool
- func (r *WorkforcePool) Describe() dcl.ServiceTypeVersion
- func (r *WorkforcePool) GetPolicy(basePath string) (string, string, *bytes.Buffer, error)
- func (r *WorkforcePool) IAMPolicyVersion() int
- func (r *WorkforcePool) ID() (string, error)
- func (r *WorkforcePool) SetPolicyURL(userBasePath string) string
- func (r *WorkforcePool) SetPolicyVerb() string
- func (r *WorkforcePool) String() string
- type WorkforcePoolList
- type WorkforcePoolProvider
- type WorkforcePoolProviderList
- type WorkforcePoolProviderOidc
- type WorkforcePoolProviderOidcClientSecret
- type WorkforcePoolProviderOidcClientSecretValue
- type WorkforcePoolProviderOidcWebSsoConfig
- type WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum
- type WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum
- type WorkforcePoolProviderSaml
- type WorkforcePoolProviderStateEnum
- type WorkforcePoolStateEnum
- type WorkloadIdentityPool
- type WorkloadIdentityPoolList
- type WorkloadIdentityPoolProvider
- type WorkloadIdentityPoolProviderAws
- type WorkloadIdentityPoolProviderList
- type WorkloadIdentityPoolProviderOidc
- type WorkloadIdentityPoolProviderStateEnum
- type WorkloadIdentityPoolStateEnum
Constants ¶
const RoleMaxPage = -1
const ServiceAccountMaxPage = -1
const WorkforcePoolMaxPage = -1
const WorkforcePoolProviderMaxPage = -1
const WorkloadIdentityPoolMaxPage = -1
const WorkloadIdentityPoolProviderMaxPage = -1
Variables ¶
var YAML_role []byte
var YAML_service_account []byte
var YAML_workforce_pool []byte
var YAML_workforce_pool_provider []byte
var YAML_workload_identity_pool []byte
var YAML_workload_identity_pool_provider []byte
Functions ¶
func DCLRoleSchema ¶ added in v1.10.3
func DCLServiceAccountSchema ¶ added in v1.10.3
func DCLWorkforcePoolProviderSchema ¶ added in v1.14.0
func DCLWorkforcePoolSchema ¶ added in v1.14.0
func DCLWorkloadIdentityPoolProviderSchema ¶ added in v1.10.3
func DCLWorkloadIdentityPoolSchema ¶ added in v1.10.3
func EncodeIAMCreateRequest ¶
EncodeIAMCreateRequest encodes the create request for an iam resource.
func EncodeRoleCreateRequest ¶
EncodeRoleCreateRequest properly encodes the create request for an iam role.
Types ¶
type Binding ¶
type Binding struct {
Role *string `json:"role"`
Members []string `json:"members"`
Condition *Condition `json:"condition,omitempty"`
Resource ResourceWithPolicy `json:"resource"`
}
Binding maps a single role to all of its members.
type Client ¶
The Client is the base struct of all operations. This will receive the Get, Delete, List, and Apply operations on all resources.
func (*Client) ApplyBinding ¶
func (c *Client) ApplyBinding(ctx context.Context, binding *Binding, opts ...dcl.ApplyOption) (*Binding, error)
ApplyBinding is a convenience method to create a binding if it does not exist. It supports BlockAcquire and BlockCreation but ignores other lifecycle parameters as they are not relevant to IAM bindings.
func (*Client) ApplyMember ¶
func (c *Client) ApplyMember(ctx context.Context, member *Member, opts ...dcl.ApplyOption) (*Member, error)
ApplyMember is a convenience method to create a member if it does not exist. It supports BlockAcquire and BlockCreation but ignores other lifecycle parameters as they are not relevant to IAM members.
func (*Client) ApplyServiceAccount ¶
func (c *Client) ApplyServiceAccount(ctx context.Context, rawDesired *ServiceAccount, opts ...dcl.ApplyOption) (*ServiceAccount, error)
func (*Client) ApplyWorkforcePool ¶ added in v1.14.0
func (c *Client) ApplyWorkforcePool(ctx context.Context, rawDesired *WorkforcePool, opts ...dcl.ApplyOption) (*WorkforcePool, error)
func (*Client) ApplyWorkforcePoolProvider ¶ added in v1.14.0
func (c *Client) ApplyWorkforcePoolProvider(ctx context.Context, rawDesired *WorkforcePoolProvider, opts ...dcl.ApplyOption) (*WorkforcePoolProvider, error)
func (*Client) ApplyWorkloadIdentityPool ¶
func (c *Client) ApplyWorkloadIdentityPool(ctx context.Context, rawDesired *WorkloadIdentityPool, opts ...dcl.ApplyOption) (*WorkloadIdentityPool, error)
func (*Client) ApplyWorkloadIdentityPoolProvider ¶
func (c *Client) ApplyWorkloadIdentityPoolProvider(ctx context.Context, rawDesired *WorkloadIdentityPoolProvider, opts ...dcl.ApplyOption) (*WorkloadIdentityPoolProvider, error)
func (*Client) DeleteAllRole ¶
DeleteAllRole deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllServiceAccount ¶
func (c *Client) DeleteAllServiceAccount(ctx context.Context, project string, filter func(*ServiceAccount) bool) error
DeleteAllServiceAccount deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllWorkforcePool ¶ added in v1.14.0
func (c *Client) DeleteAllWorkforcePool(ctx context.Context, location, parent string, filter func(*WorkforcePool) bool) error
DeleteAllWorkforcePool deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllWorkforcePoolProvider ¶ added in v1.14.0
func (c *Client) DeleteAllWorkforcePoolProvider(ctx context.Context, location, workforcePool string, filter func(*WorkforcePoolProvider) bool) error
DeleteAllWorkforcePoolProvider deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllWorkloadIdentityPool ¶
func (c *Client) DeleteAllWorkloadIdentityPool(ctx context.Context, project, location string, filter func(*WorkloadIdentityPool) bool) error
DeleteAllWorkloadIdentityPool deletes all resources that the filter functions returns true on.
func (*Client) DeleteAllWorkloadIdentityPoolProvider ¶
func (c *Client) DeleteAllWorkloadIdentityPoolProvider(ctx context.Context, project, location, workloadIdentityPool string, filter func(*WorkloadIdentityPoolProvider) bool) error
DeleteAllWorkloadIdentityPoolProvider deletes all resources that the filter functions returns true on.
func (*Client) DeleteBinding ¶
DeleteBinding deletes a binding from its specified resource.
func (*Client) DeleteMember ¶
DeleteMember deletes a member from its specified binding.
func (*Client) DeleteServiceAccount ¶
func (c *Client) DeleteServiceAccount(ctx context.Context, r *ServiceAccount) error
func (*Client) DeleteWorkforcePool ¶ added in v1.14.0
func (c *Client) DeleteWorkforcePool(ctx context.Context, r *WorkforcePool) error
func (*Client) DeleteWorkforcePoolProvider ¶ added in v1.14.0
func (c *Client) DeleteWorkforcePoolProvider(ctx context.Context, r *WorkforcePoolProvider) error
func (*Client) DeleteWorkloadIdentityPool ¶
func (c *Client) DeleteWorkloadIdentityPool(ctx context.Context, r *WorkloadIdentityPool) error
func (*Client) DeleteWorkloadIdentityPoolProvider ¶
func (c *Client) DeleteWorkloadIdentityPoolProvider(ctx context.Context, r *WorkloadIdentityPoolProvider) error
func (*Client) GetBinding ¶
func (c *Client) GetBinding(ctx context.Context, r ResourceWithPolicy, role string) (*Binding, error)
GetBinding returns the binding for the given role, or nil if there is no such binding.
func (*Client) GetMember ¶
func (c *Client) GetMember(ctx context.Context, r ResourceWithPolicy, role, member string) (*Member, error)
GetMember returns a Member struct if the role/member pair exists on the resource's policy, or nil if they do not.
func (*Client) GetServiceAccount ¶
func (c *Client) GetServiceAccount(ctx context.Context, r *ServiceAccount) (*ServiceAccount, error)
func (*Client) GetWorkforcePool ¶ added in v1.14.0
func (c *Client) GetWorkforcePool(ctx context.Context, r *WorkforcePool) (*WorkforcePool, error)
func (*Client) GetWorkforcePoolProvider ¶ added in v1.14.0
func (c *Client) GetWorkforcePoolProvider(ctx context.Context, r *WorkforcePoolProvider) (*WorkforcePoolProvider, error)
func (*Client) GetWorkloadIdentityPool ¶
func (c *Client) GetWorkloadIdentityPool(ctx context.Context, r *WorkloadIdentityPool) (*WorkloadIdentityPool, error)
func (*Client) GetWorkloadIdentityPoolProvider ¶
func (c *Client) GetWorkloadIdentityPoolProvider(ctx context.Context, r *WorkloadIdentityPoolProvider) (*WorkloadIdentityPoolProvider, error)
func (*Client) ListRoleWithMaxResults ¶
func (*Client) ListServiceAccount ¶
func (*Client) ListServiceAccountWithMaxResults ¶
func (*Client) ListWorkforcePool ¶ added in v1.14.0
func (*Client) ListWorkforcePoolProvider ¶ added in v1.14.0
func (*Client) ListWorkforcePoolProviderWithMaxResults ¶ added in v1.14.0
func (*Client) ListWorkforcePoolWithMaxResults ¶ added in v1.14.0
func (*Client) ListWorkloadIdentityPool ¶
func (*Client) ListWorkloadIdentityPoolProvider ¶
func (*Client) ListWorkloadIdentityPoolProviderWithMaxResults ¶
func (*Client) ListWorkloadIdentityPoolWithMaxResults ¶
func (*Client) SetBinding ¶
SetBinding sets one binding, authoritatively on the role, for the given resource.
func (*Client) SetMember ¶
SetMember adds a member to the binding for its role if not already present.
type Condition ¶
type Condition struct {
Title *string `json:"title"`
Description *string `json:"description"`
Expression *string `json:"expression"`
}
Condition represents an IAM condition. See https://cloud.google.com/iam/docs/conditions-overview#resources for details.
type Member ¶
type Member struct {
Role *string `json:"role"`
Member *string `json:"member"`
Resource ResourceWithPolicy `json:"resource"`
}
Member maps a single IAM member to one of its roles.
type Policy ¶
type Policy struct {
Bindings []Binding `json:"bindings"`
Etag *string `json:"etag"`
Version *int `json:"version"`
Resource ResourceWithPolicy `json:"resource"`
}
Policy is the core resource of an IAM policy.
type ResourceWithPolicy ¶
type ResourceWithPolicy interface {
SetPolicyURL(string) string
SetPolicyVerb() string
GetPolicy(string) (string, string, *bytes.Buffer, error)
IAMPolicyVersion() int
}
ResourceWithPolicy is any DCL resource which has an IAM policy.
type Role ¶
type Role struct {
Name *string `json:"name"`
Title *string `json:"title"`
Description *string `json:"description"`
LocalizedValues *RoleLocalizedValues `json:"localizedValues"`
LifecyclePhase *string `json:"lifecyclePhase"`
GroupName *string `json:"groupName"`
GroupTitle *string `json:"groupTitle"`
IncludedPermissions []string `json:"includedPermissions"`
Stage *RoleStageEnum `json:"stage"`
Etag *string `json:"etag"`
Deleted *bool `json:"deleted"`
IncludedRoles []string `json:"includedRoles"`
Parent *string `json:"parent"`
}
func (*Role) Describe ¶
func (r *Role) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
type RoleLocalizedValues ¶
type RoleLocalizedValues struct {
LocalizedTitle *string `json:"localizedTitle"`
LocalizedDescription *string `json:"localizedDescription"`
// contains filtered or unexported fields
}
var EmptyRoleLocalizedValues *RoleLocalizedValues = &RoleLocalizedValues{empty: true}
This object is used to assert a desired state where this RoleLocalizedValues is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*RoleLocalizedValues) Empty ¶
func (r *RoleLocalizedValues) Empty() bool
func (*RoleLocalizedValues) HashCode ¶
func (r *RoleLocalizedValues) HashCode() string
func (*RoleLocalizedValues) String ¶
func (r *RoleLocalizedValues) String() string
func (*RoleLocalizedValues) UnmarshalJSON ¶
func (r *RoleLocalizedValues) UnmarshalJSON(data []byte) error
type RoleStageEnum ¶
type RoleStageEnum string
The enum RoleStageEnum.
func RoleStageEnumRef ¶
func RoleStageEnumRef(s string) *RoleStageEnum
RoleStageEnumRef returns a *RoleStageEnum with the value of string s If the empty string is provided, nil is returned.
func (RoleStageEnum) Validate ¶
func (v RoleStageEnum) Validate() error
type ServiceAccount ¶
type ServiceAccount struct {
Name *string `json:"name"`
Project *string `json:"project"`
UniqueId *string `json:"uniqueId"`
Email *string `json:"email"`
DisplayName *string `json:"displayName"`
Description *string `json:"description"`
OAuth2ClientId *string `json:"oauth2ClientId"`
ActasResources *ServiceAccountActasResources `json:"actasResources"`
Disabled *bool `json:"disabled"`
}
func (*ServiceAccount) Describe ¶
func (r *ServiceAccount) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*ServiceAccount) IAMPolicyVersion ¶
func (r *ServiceAccount) IAMPolicyVersion() int
IAMPolicyVersion defines version for IAMPolicy.
func (*ServiceAccount) ID ¶
func (r *ServiceAccount) ID() (string, error)
func (*ServiceAccount) SetPolicyURL ¶
func (r *ServiceAccount) SetPolicyURL(userBasePath string) string
SetPolicyURL constructs url for setting IAM Policy.
func (*ServiceAccount) SetPolicyVerb ¶
func (r *ServiceAccount) SetPolicyVerb() string
SetPolicyVerb sets the verb for SetPolicy.
func (*ServiceAccount) String ¶
func (r *ServiceAccount) String() string
type ServiceAccountActasResources ¶
type ServiceAccountActasResources struct {
Resources []ServiceAccountActasResourcesResources `json:"resources"`
// contains filtered or unexported fields
}
var EmptyServiceAccountActasResources *ServiceAccountActasResources = &ServiceAccountActasResources{empty: true}
This object is used to assert a desired state where this ServiceAccountActasResources is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*ServiceAccountActasResources) Empty ¶
func (r *ServiceAccountActasResources) Empty() bool
func (*ServiceAccountActasResources) HashCode ¶
func (r *ServiceAccountActasResources) HashCode() string
func (*ServiceAccountActasResources) String ¶
func (r *ServiceAccountActasResources) String() string
func (*ServiceAccountActasResources) UnmarshalJSON ¶
func (r *ServiceAccountActasResources) UnmarshalJSON(data []byte) error
type ServiceAccountActasResourcesResources ¶
type ServiceAccountActasResourcesResources struct {
FullResourceName *string `json:"fullResourceName"`
// contains filtered or unexported fields
}
var EmptyServiceAccountActasResourcesResources *ServiceAccountActasResourcesResources = &ServiceAccountActasResourcesResources{empty: true}
This object is used to assert a desired state where this ServiceAccountActasResourcesResources is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*ServiceAccountActasResourcesResources) Empty ¶
func (r *ServiceAccountActasResourcesResources) Empty() bool
func (*ServiceAccountActasResourcesResources) HashCode ¶
func (r *ServiceAccountActasResourcesResources) HashCode() string
func (*ServiceAccountActasResourcesResources) String ¶
func (r *ServiceAccountActasResourcesResources) String() string
func (*ServiceAccountActasResourcesResources) UnmarshalJSON ¶
func (r *ServiceAccountActasResourcesResources) UnmarshalJSON(data []byte) error
type ServiceAccountList ¶
type ServiceAccountList struct {
Items []*ServiceAccount
// contains filtered or unexported fields
}
func (*ServiceAccountList) HasNext ¶
func (l *ServiceAccountList) HasNext() bool
type WorkforcePool ¶ added in v1.14.0
type WorkforcePool struct {
Name *string `json:"name"`
SelfLink *string `json:"selfLink"`
Parent *string `json:"parent"`
DisplayName *string `json:"displayName"`
Description *string `json:"description"`
State *WorkforcePoolStateEnum `json:"state"`
Disabled *bool `json:"disabled"`
SessionDuration *string `json:"sessionDuration"`
Location *string `json:"location"`
}
func (*WorkforcePool) Describe ¶ added in v1.14.0
func (r *WorkforcePool) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*WorkforcePool) IAMPolicyVersion ¶ added in v1.14.0
func (r *WorkforcePool) IAMPolicyVersion() int
func (*WorkforcePool) ID ¶ added in v1.14.0
func (r *WorkforcePool) ID() (string, error)
func (*WorkforcePool) SetPolicyURL ¶ added in v1.14.0
func (r *WorkforcePool) SetPolicyURL(userBasePath string) string
func (*WorkforcePool) SetPolicyVerb ¶ added in v1.14.0
func (r *WorkforcePool) SetPolicyVerb() string
func (*WorkforcePool) String ¶ added in v1.14.0
func (r *WorkforcePool) String() string
type WorkforcePoolList ¶ added in v1.14.0
type WorkforcePoolList struct {
Items []*WorkforcePool
// contains filtered or unexported fields
}
func (*WorkforcePoolList) HasNext ¶ added in v1.14.0
func (l *WorkforcePoolList) HasNext() bool
type WorkforcePoolProvider ¶ added in v1.14.0
type WorkforcePoolProvider struct {
Name *string `json:"name"`
DisplayName *string `json:"displayName"`
Description *string `json:"description"`
State *WorkforcePoolProviderStateEnum `json:"state"`
Disabled *bool `json:"disabled"`
AttributeMapping map[string]string `json:"attributeMapping"`
AttributeCondition *string `json:"attributeCondition"`
Saml *WorkforcePoolProviderSaml `json:"saml"`
Oidc *WorkforcePoolProviderOidc `json:"oidc"`
Location *string `json:"location"`
WorkforcePool *string `json:"workforcePool"`
}
func (*WorkforcePoolProvider) Describe ¶ added in v1.14.0
func (r *WorkforcePoolProvider) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*WorkforcePoolProvider) ID ¶ added in v1.14.0
func (r *WorkforcePoolProvider) ID() (string, error)
func (*WorkforcePoolProvider) String ¶ added in v1.14.0
func (r *WorkforcePoolProvider) String() string
type WorkforcePoolProviderList ¶ added in v1.14.0
type WorkforcePoolProviderList struct {
Items []*WorkforcePoolProvider
// contains filtered or unexported fields
}
func (*WorkforcePoolProviderList) HasNext ¶ added in v1.14.0
func (l *WorkforcePoolProviderList) HasNext() bool
type WorkforcePoolProviderOidc ¶ added in v1.14.0
type WorkforcePoolProviderOidc struct {
IssuerUri *string `json:"issuerUri"`
ClientId *string `json:"clientId"`
JwksJson *string `json:"jwksJson"`
WebSsoConfig *WorkforcePoolProviderOidcWebSsoConfig `json:"webSsoConfig"`
ClientSecret *WorkforcePoolProviderOidcClientSecret `json:"clientSecret"`
// contains filtered or unexported fields
}
var EmptyWorkforcePoolProviderOidc *WorkforcePoolProviderOidc = &WorkforcePoolProviderOidc{empty: true}
This object is used to assert a desired state where this WorkforcePoolProviderOidc is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkforcePoolProviderOidc) Empty ¶ added in v1.14.0
func (r *WorkforcePoolProviderOidc) Empty() bool
func (*WorkforcePoolProviderOidc) HashCode ¶ added in v1.14.0
func (r *WorkforcePoolProviderOidc) HashCode() string
func (*WorkforcePoolProviderOidc) String ¶ added in v1.14.0
func (r *WorkforcePoolProviderOidc) String() string
func (*WorkforcePoolProviderOidc) UnmarshalJSON ¶ added in v1.14.0
func (r *WorkforcePoolProviderOidc) UnmarshalJSON(data []byte) error
type WorkforcePoolProviderOidcClientSecret ¶ added in v1.45.0
type WorkforcePoolProviderOidcClientSecret struct {
Value *WorkforcePoolProviderOidcClientSecretValue `json:"value"`
// contains filtered or unexported fields
}
var EmptyWorkforcePoolProviderOidcClientSecret *WorkforcePoolProviderOidcClientSecret = &WorkforcePoolProviderOidcClientSecret{empty: true}
This object is used to assert a desired state where this WorkforcePoolProviderOidcClientSecret is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkforcePoolProviderOidcClientSecret) Empty ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecret) Empty() bool
func (*WorkforcePoolProviderOidcClientSecret) HashCode ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecret) HashCode() string
func (*WorkforcePoolProviderOidcClientSecret) String ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecret) String() string
func (*WorkforcePoolProviderOidcClientSecret) UnmarshalJSON ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecret) UnmarshalJSON(data []byte) error
type WorkforcePoolProviderOidcClientSecretValue ¶ added in v1.45.0
type WorkforcePoolProviderOidcClientSecretValue struct {
PlainText *string `json:"plainText"`
Thumbprint *string `json:"thumbprint"`
// contains filtered or unexported fields
}
var EmptyWorkforcePoolProviderOidcClientSecretValue *WorkforcePoolProviderOidcClientSecretValue = &WorkforcePoolProviderOidcClientSecretValue{empty: true}
This object is used to assert a desired state where this WorkforcePoolProviderOidcClientSecretValue is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkforcePoolProviderOidcClientSecretValue) Empty ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecretValue) Empty() bool
func (*WorkforcePoolProviderOidcClientSecretValue) HashCode ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecretValue) HashCode() string
func (*WorkforcePoolProviderOidcClientSecretValue) String ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecretValue) String() string
func (*WorkforcePoolProviderOidcClientSecretValue) UnmarshalJSON ¶ added in v1.45.0
func (r *WorkforcePoolProviderOidcClientSecretValue) UnmarshalJSON(data []byte) error
type WorkforcePoolProviderOidcWebSsoConfig ¶ added in v1.38.0
type WorkforcePoolProviderOidcWebSsoConfig struct {
ResponseType *WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum `json:"responseType"`
AssertionClaimsBehavior *WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum `json:"assertionClaimsBehavior"`
AdditionalScopes []string `json:"additionalScopes"`
// contains filtered or unexported fields
}
var EmptyWorkforcePoolProviderOidcWebSsoConfig *WorkforcePoolProviderOidcWebSsoConfig = &WorkforcePoolProviderOidcWebSsoConfig{empty: true}
This object is used to assert a desired state where this WorkforcePoolProviderOidcWebSsoConfig is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkforcePoolProviderOidcWebSsoConfig) Empty ¶ added in v1.38.0
func (r *WorkforcePoolProviderOidcWebSsoConfig) Empty() bool
func (*WorkforcePoolProviderOidcWebSsoConfig) HashCode ¶ added in v1.38.0
func (r *WorkforcePoolProviderOidcWebSsoConfig) HashCode() string
func (*WorkforcePoolProviderOidcWebSsoConfig) String ¶ added in v1.38.0
func (r *WorkforcePoolProviderOidcWebSsoConfig) String() string
func (*WorkforcePoolProviderOidcWebSsoConfig) UnmarshalJSON ¶ added in v1.38.0
func (r *WorkforcePoolProviderOidcWebSsoConfig) UnmarshalJSON(data []byte) error
type WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum ¶ added in v1.38.0
type WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum string
The enum WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum.
func WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnumRef ¶ added in v1.38.0
func WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnumRef(s string) *WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum
WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnumRef returns a *WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum) Validate ¶ added in v1.38.0
func (v WorkforcePoolProviderOidcWebSsoConfigAssertionClaimsBehaviorEnum) Validate() error
type WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum ¶ added in v1.38.0
type WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum string
The enum WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum.
func WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnumRef ¶ added in v1.38.0
func WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnumRef(s string) *WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum
WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnumRef returns a *WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum) Validate ¶ added in v1.38.0
func (v WorkforcePoolProviderOidcWebSsoConfigResponseTypeEnum) Validate() error
type WorkforcePoolProviderSaml ¶ added in v1.14.0
type WorkforcePoolProviderSaml struct {
IdpMetadataXml *string `json:"idpMetadataXml"`
// contains filtered or unexported fields
}
var EmptyWorkforcePoolProviderSaml *WorkforcePoolProviderSaml = &WorkforcePoolProviderSaml{empty: true}
This object is used to assert a desired state where this WorkforcePoolProviderSaml is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkforcePoolProviderSaml) Empty ¶ added in v1.14.0
func (r *WorkforcePoolProviderSaml) Empty() bool
func (*WorkforcePoolProviderSaml) HashCode ¶ added in v1.14.0
func (r *WorkforcePoolProviderSaml) HashCode() string
func (*WorkforcePoolProviderSaml) String ¶ added in v1.14.0
func (r *WorkforcePoolProviderSaml) String() string
func (*WorkforcePoolProviderSaml) UnmarshalJSON ¶ added in v1.14.0
func (r *WorkforcePoolProviderSaml) UnmarshalJSON(data []byte) error
type WorkforcePoolProviderStateEnum ¶ added in v1.14.0
type WorkforcePoolProviderStateEnum string
The enum WorkforcePoolProviderStateEnum.
func WorkforcePoolProviderStateEnumRef ¶ added in v1.14.0
func WorkforcePoolProviderStateEnumRef(s string) *WorkforcePoolProviderStateEnum
WorkforcePoolProviderStateEnumRef returns a *WorkforcePoolProviderStateEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkforcePoolProviderStateEnum) Validate ¶ added in v1.14.0
func (v WorkforcePoolProviderStateEnum) Validate() error
type WorkforcePoolStateEnum ¶ added in v1.14.0
type WorkforcePoolStateEnum string
The enum WorkforcePoolStateEnum.
func WorkforcePoolStateEnumRef ¶ added in v1.14.0
func WorkforcePoolStateEnumRef(s string) *WorkforcePoolStateEnum
WorkforcePoolStateEnumRef returns a *WorkforcePoolStateEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkforcePoolStateEnum) Validate ¶ added in v1.14.0
func (v WorkforcePoolStateEnum) Validate() error
type WorkloadIdentityPool ¶
type WorkloadIdentityPool struct {
Name *string `json:"name"`
DisplayName *string `json:"displayName"`
Description *string `json:"description"`
State *WorkloadIdentityPoolStateEnum `json:"state"`
Disabled *bool `json:"disabled"`
Project *string `json:"project"`
Location *string `json:"location"`
}
func (*WorkloadIdentityPool) Describe ¶
func (r *WorkloadIdentityPool) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*WorkloadIdentityPool) ID ¶
func (r *WorkloadIdentityPool) ID() (string, error)
func (*WorkloadIdentityPool) String ¶
func (r *WorkloadIdentityPool) String() string
type WorkloadIdentityPoolList ¶
type WorkloadIdentityPoolList struct {
Items []*WorkloadIdentityPool
// contains filtered or unexported fields
}
func (*WorkloadIdentityPoolList) HasNext ¶
func (l *WorkloadIdentityPoolList) HasNext() bool
type WorkloadIdentityPoolProvider ¶
type WorkloadIdentityPoolProvider struct {
Name *string `json:"name"`
DisplayName *string `json:"displayName"`
Description *string `json:"description"`
State *WorkloadIdentityPoolProviderStateEnum `json:"state"`
Disabled *bool `json:"disabled"`
AttributeMapping map[string]string `json:"attributeMapping"`
AttributeCondition *string `json:"attributeCondition"`
Aws *WorkloadIdentityPoolProviderAws `json:"aws"`
Oidc *WorkloadIdentityPoolProviderOidc `json:"oidc"`
Project *string `json:"project"`
Location *string `json:"location"`
WorkloadIdentityPool *string `json:"workloadIdentityPool"`
}
func (*WorkloadIdentityPoolProvider) Describe ¶
func (r *WorkloadIdentityPoolProvider) Describe() dcl.ServiceTypeVersion
Describe returns a simple description of this resource to ensure that automated tools can identify it.
func (*WorkloadIdentityPoolProvider) ID ¶
func (r *WorkloadIdentityPoolProvider) ID() (string, error)
func (*WorkloadIdentityPoolProvider) String ¶
func (r *WorkloadIdentityPoolProvider) String() string
type WorkloadIdentityPoolProviderAws ¶
type WorkloadIdentityPoolProviderAws struct {
AccountId *string `json:"accountId"`
StsUri []string `json:"stsUri"`
// contains filtered or unexported fields
}
var EmptyWorkloadIdentityPoolProviderAws *WorkloadIdentityPoolProviderAws = &WorkloadIdentityPoolProviderAws{empty: true}
This object is used to assert a desired state where this WorkloadIdentityPoolProviderAws is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkloadIdentityPoolProviderAws) Empty ¶
func (r *WorkloadIdentityPoolProviderAws) Empty() bool
func (*WorkloadIdentityPoolProviderAws) HashCode ¶
func (r *WorkloadIdentityPoolProviderAws) HashCode() string
func (*WorkloadIdentityPoolProviderAws) String ¶
func (r *WorkloadIdentityPoolProviderAws) String() string
func (*WorkloadIdentityPoolProviderAws) UnmarshalJSON ¶
func (r *WorkloadIdentityPoolProviderAws) UnmarshalJSON(data []byte) error
type WorkloadIdentityPoolProviderList ¶
type WorkloadIdentityPoolProviderList struct {
Items []*WorkloadIdentityPoolProvider
// contains filtered or unexported fields
}
func (*WorkloadIdentityPoolProviderList) HasNext ¶
func (l *WorkloadIdentityPoolProviderList) HasNext() bool
type WorkloadIdentityPoolProviderOidc ¶
type WorkloadIdentityPoolProviderOidc struct {
IssuerUri *string `json:"issuerUri"`
AllowedAudiences []string `json:"allowedAudiences"`
// contains filtered or unexported fields
}
var EmptyWorkloadIdentityPoolProviderOidc *WorkloadIdentityPoolProviderOidc = &WorkloadIdentityPoolProviderOidc{empty: true}
This object is used to assert a desired state where this WorkloadIdentityPoolProviderOidc is empty. Go lacks global const objects, but this object should be treated as one. Modifying this object will have undesirable results.
func (*WorkloadIdentityPoolProviderOidc) Empty ¶
func (r *WorkloadIdentityPoolProviderOidc) Empty() bool
func (*WorkloadIdentityPoolProviderOidc) HashCode ¶
func (r *WorkloadIdentityPoolProviderOidc) HashCode() string
func (*WorkloadIdentityPoolProviderOidc) String ¶
func (r *WorkloadIdentityPoolProviderOidc) String() string
func (*WorkloadIdentityPoolProviderOidc) UnmarshalJSON ¶
func (r *WorkloadIdentityPoolProviderOidc) UnmarshalJSON(data []byte) error
type WorkloadIdentityPoolProviderStateEnum ¶
type WorkloadIdentityPoolProviderStateEnum string
The enum WorkloadIdentityPoolProviderStateEnum.
func WorkloadIdentityPoolProviderStateEnumRef ¶
func WorkloadIdentityPoolProviderStateEnumRef(s string) *WorkloadIdentityPoolProviderStateEnum
WorkloadIdentityPoolProviderStateEnumRef returns a *WorkloadIdentityPoolProviderStateEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkloadIdentityPoolProviderStateEnum) Validate ¶
func (v WorkloadIdentityPoolProviderStateEnum) Validate() error
type WorkloadIdentityPoolStateEnum ¶
type WorkloadIdentityPoolStateEnum string
The enum WorkloadIdentityPoolStateEnum.
func WorkloadIdentityPoolStateEnumRef ¶
func WorkloadIdentityPoolStateEnumRef(s string) *WorkloadIdentityPoolStateEnum
WorkloadIdentityPoolStateEnumRef returns a *WorkloadIdentityPoolStateEnum with the value of string s If the empty string is provided, nil is returned.
func (WorkloadIdentityPoolStateEnum) Validate ¶
func (v WorkloadIdentityPoolStateEnum) Validate() error
Source Files
¶
- client.go
- iam.go
- iam_utils.go
- role.go
- role_internal.go
- role_schema.go
- role_yaml_embed.go
- service_account.go
- service_account_internal.go
- service_account_schema.go
- service_account_yaml_embed.go
- workforce_pool.go
- workforce_pool_internal.go
- workforce_pool_provider.go
- workforce_pool_provider_internal.go
- workforce_pool_provider_schema.go
- workforce_pool_provider_yaml_embed.go
- workforce_pool_schema.go
- workforce_pool_yaml_embed.go
- workload_identity_pool.go
- workload_identity_pool_internal.go
- workload_identity_pool_provider.go
- workload_identity_pool_provider_internal.go
- workload_identity_pool_provider_schema.go
- workload_identity_pool_provider_yaml_embed.go
- workload_identity_pool_schema.go
- workload_identity_pool_yaml_embed.go