Documentation
¶
Overview ¶
Package networksecurity is an auto-generated package for the Network Security API.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
// go get cloud.google.com/go/networksecurity/apiv1@latest
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client, mentioned above.
req := &networksecuritypb.AddAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
}
op, err := c.AddAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
Use of Context ¶
The ctx passed to NewAddressGroupClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type AddAddressGroupItemsOperation
- func (op *AddAddressGroupItemsOperation) Done() bool
- func (op *AddAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *AddAddressGroupItemsOperation) Name() string
- func (op *AddAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- func (op *AddAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- type AddressGroupCallOptions
- type AddressGroupClient
- func (c *AddressGroupClient) AddAddressGroupItems(ctx context.Context, req *networksecuritypb.AddAddressGroupItemsRequest, ...) (*AddAddressGroupItemsOperation, error)
- func (c *AddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation
- func (c *AddressGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *AddressGroupClient) CloneAddressGroupItems(ctx context.Context, req *networksecuritypb.CloneAddressGroupItemsRequest, ...) (*CloneAddressGroupItemsOperation, error)
- func (c *AddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation
- func (c *AddressGroupClient) Close() error
- func (c *AddressGroupClient) Connection() *grpc.ClientConndeprecated
- func (c *AddressGroupClient) CreateAddressGroup(ctx context.Context, req *networksecuritypb.CreateAddressGroupRequest, ...) (*CreateAddressGroupOperation, error)
- func (c *AddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation
- func (c *AddressGroupClient) DeleteAddressGroup(ctx context.Context, req *networksecuritypb.DeleteAddressGroupRequest, ...) (*DeleteAddressGroupOperation, error)
- func (c *AddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation
- func (c *AddressGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *AddressGroupClient) GetAddressGroup(ctx context.Context, req *networksecuritypb.GetAddressGroupRequest, ...) (*networksecuritypb.AddressGroup, error)
- func (c *AddressGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *AddressGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *AddressGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *AddressGroupClient) ListAddressGroupReferences(ctx context.Context, req *networksecuritypb.ListAddressGroupReferencesRequest, ...) *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator
- func (c *AddressGroupClient) ListAddressGroups(ctx context.Context, req *networksecuritypb.ListAddressGroupsRequest, ...) *AddressGroupIterator
- func (c *AddressGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *AddressGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *AddressGroupClient) RemoveAddressGroupItems(ctx context.Context, req *networksecuritypb.RemoveAddressGroupItemsRequest, ...) (*RemoveAddressGroupItemsOperation, error)
- func (c *AddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation
- func (c *AddressGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *AddressGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *AddressGroupClient) UpdateAddressGroup(ctx context.Context, req *networksecuritypb.UpdateAddressGroupRequest, ...) (*UpdateAddressGroupOperation, error)
- func (c *AddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation
- type AddressGroupIterator
- type AuthorizationPolicyIterator
- type AuthzPolicyIterator
- type BackendAuthenticationConfigIterator
- func (it *BackendAuthenticationConfigIterator) All() iter.Seq2[*networksecuritypb.BackendAuthenticationConfig, error]
- func (it *BackendAuthenticationConfigIterator) Next() (*networksecuritypb.BackendAuthenticationConfig, error)
- func (it *BackendAuthenticationConfigIterator) PageInfo() *iterator.PageInfo
- type CallOptions
- type Client
- func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *Client) Close() error
- func (c *Client) Connection() *grpc.ClientConndeprecated
- func (c *Client) CreateAuthorizationPolicy(ctx context.Context, req *networksecuritypb.CreateAuthorizationPolicyRequest, ...) (*CreateAuthorizationPolicyOperation, error)
- func (c *Client) CreateAuthorizationPolicyOperation(name string) *CreateAuthorizationPolicyOperation
- func (c *Client) CreateAuthzPolicy(ctx context.Context, req *networksecuritypb.CreateAuthzPolicyRequest, ...) (*CreateAuthzPolicyOperation, error)
- func (c *Client) CreateAuthzPolicyOperation(name string) *CreateAuthzPolicyOperation
- func (c *Client) CreateBackendAuthenticationConfig(ctx context.Context, ...) (*CreateBackendAuthenticationConfigOperation, error)
- func (c *Client) CreateBackendAuthenticationConfigOperation(name string) *CreateBackendAuthenticationConfigOperation
- func (c *Client) CreateClientTlsPolicy(ctx context.Context, req *networksecuritypb.CreateClientTlsPolicyRequest, ...) (*CreateClientTlsPolicyOperation, error)
- func (c *Client) CreateClientTlsPolicyOperation(name string) *CreateClientTlsPolicyOperation
- func (c *Client) CreateGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.CreateGatewaySecurityPolicyRequest, ...) (*CreateGatewaySecurityPolicyOperation, error)
- func (c *Client) CreateGatewaySecurityPolicyOperation(name string) *CreateGatewaySecurityPolicyOperation
- func (c *Client) CreateGatewaySecurityPolicyRule(ctx context.Context, ...) (*CreateGatewaySecurityPolicyRuleOperation, error)
- func (c *Client) CreateGatewaySecurityPolicyRuleOperation(name string) *CreateGatewaySecurityPolicyRuleOperation
- func (c *Client) CreateServerTlsPolicy(ctx context.Context, req *networksecuritypb.CreateServerTlsPolicyRequest, ...) (*CreateServerTlsPolicyOperation, error)
- func (c *Client) CreateServerTlsPolicyOperation(name string) *CreateServerTlsPolicyOperation
- func (c *Client) CreateTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.CreateTlsInspectionPolicyRequest, ...) (*CreateTlsInspectionPolicyOperation, error)
- func (c *Client) CreateTlsInspectionPolicyOperation(name string) *CreateTlsInspectionPolicyOperation
- func (c *Client) CreateUrlList(ctx context.Context, req *networksecuritypb.CreateUrlListRequest, ...) (*CreateUrlListOperation, error)
- func (c *Client) CreateUrlListOperation(name string) *CreateUrlListOperation
- func (c *Client) DeleteAuthorizationPolicy(ctx context.Context, req *networksecuritypb.DeleteAuthorizationPolicyRequest, ...) (*DeleteAuthorizationPolicyOperation, error)
- func (c *Client) DeleteAuthorizationPolicyOperation(name string) *DeleteAuthorizationPolicyOperation
- func (c *Client) DeleteAuthzPolicy(ctx context.Context, req *networksecuritypb.DeleteAuthzPolicyRequest, ...) (*DeleteAuthzPolicyOperation, error)
- func (c *Client) DeleteAuthzPolicyOperation(name string) *DeleteAuthzPolicyOperation
- func (c *Client) DeleteBackendAuthenticationConfig(ctx context.Context, ...) (*DeleteBackendAuthenticationConfigOperation, error)
- func (c *Client) DeleteBackendAuthenticationConfigOperation(name string) *DeleteBackendAuthenticationConfigOperation
- func (c *Client) DeleteClientTlsPolicy(ctx context.Context, req *networksecuritypb.DeleteClientTlsPolicyRequest, ...) (*DeleteClientTlsPolicyOperation, error)
- func (c *Client) DeleteClientTlsPolicyOperation(name string) *DeleteClientTlsPolicyOperation
- func (c *Client) DeleteGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.DeleteGatewaySecurityPolicyRequest, ...) (*DeleteGatewaySecurityPolicyOperation, error)
- func (c *Client) DeleteGatewaySecurityPolicyOperation(name string) *DeleteGatewaySecurityPolicyOperation
- func (c *Client) DeleteGatewaySecurityPolicyRule(ctx context.Context, ...) (*DeleteGatewaySecurityPolicyRuleOperation, error)
- func (c *Client) DeleteGatewaySecurityPolicyRuleOperation(name string) *DeleteGatewaySecurityPolicyRuleOperation
- func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *Client) DeleteServerTlsPolicy(ctx context.Context, req *networksecuritypb.DeleteServerTlsPolicyRequest, ...) (*DeleteServerTlsPolicyOperation, error)
- func (c *Client) DeleteServerTlsPolicyOperation(name string) *DeleteServerTlsPolicyOperation
- func (c *Client) DeleteTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.DeleteTlsInspectionPolicyRequest, ...) (*DeleteTlsInspectionPolicyOperation, error)
- func (c *Client) DeleteTlsInspectionPolicyOperation(name string) *DeleteTlsInspectionPolicyOperation
- func (c *Client) DeleteUrlList(ctx context.Context, req *networksecuritypb.DeleteUrlListRequest, ...) (*DeleteUrlListOperation, error)
- func (c *Client) DeleteUrlListOperation(name string) *DeleteUrlListOperation
- func (c *Client) GetAuthorizationPolicy(ctx context.Context, req *networksecuritypb.GetAuthorizationPolicyRequest, ...) (*networksecuritypb.AuthorizationPolicy, error)
- func (c *Client) GetAuthzPolicy(ctx context.Context, req *networksecuritypb.GetAuthzPolicyRequest, ...) (*networksecuritypb.AuthzPolicy, error)
- func (c *Client) GetBackendAuthenticationConfig(ctx context.Context, ...) (*networksecuritypb.BackendAuthenticationConfig, error)
- func (c *Client) GetClientTlsPolicy(ctx context.Context, req *networksecuritypb.GetClientTlsPolicyRequest, ...) (*networksecuritypb.ClientTlsPolicy, error)
- func (c *Client) GetGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.GetGatewaySecurityPolicyRequest, ...) (*networksecuritypb.GatewaySecurityPolicy, error)
- func (c *Client) GetGatewaySecurityPolicyRule(ctx context.Context, ...) (*networksecuritypb.GatewaySecurityPolicyRule, error)
- func (c *Client) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *Client) GetServerTlsPolicy(ctx context.Context, req *networksecuritypb.GetServerTlsPolicyRequest, ...) (*networksecuritypb.ServerTlsPolicy, error)
- func (c *Client) GetTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.GetTlsInspectionPolicyRequest, ...) (*networksecuritypb.TlsInspectionPolicy, error)
- func (c *Client) GetUrlList(ctx context.Context, req *networksecuritypb.GetUrlListRequest, ...) (*networksecuritypb.UrlList, error)
- func (c *Client) ListAuthorizationPolicies(ctx context.Context, req *networksecuritypb.ListAuthorizationPoliciesRequest, ...) *AuthorizationPolicyIterator
- func (c *Client) ListAuthzPolicies(ctx context.Context, req *networksecuritypb.ListAuthzPoliciesRequest, ...) *AuthzPolicyIterator
- func (c *Client) ListBackendAuthenticationConfigs(ctx context.Context, ...) *BackendAuthenticationConfigIterator
- func (c *Client) ListClientTlsPolicies(ctx context.Context, req *networksecuritypb.ListClientTlsPoliciesRequest, ...) *ClientTlsPolicyIterator
- func (c *Client) ListGatewaySecurityPolicies(ctx context.Context, req *networksecuritypb.ListGatewaySecurityPoliciesRequest, ...) *GatewaySecurityPolicyIterator
- func (c *Client) ListGatewaySecurityPolicyRules(ctx context.Context, ...) *GatewaySecurityPolicyRuleIterator
- func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *Client) ListServerTlsPolicies(ctx context.Context, req *networksecuritypb.ListServerTlsPoliciesRequest, ...) *ServerTlsPolicyIterator
- func (c *Client) ListTlsInspectionPolicies(ctx context.Context, req *networksecuritypb.ListTlsInspectionPoliciesRequest, ...) *TlsInspectionPolicyIterator
- func (c *Client) ListUrlLists(ctx context.Context, req *networksecuritypb.ListUrlListsRequest, ...) *UrlListIterator
- func (c *Client) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *Client) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *Client) UpdateAuthorizationPolicy(ctx context.Context, req *networksecuritypb.UpdateAuthorizationPolicyRequest, ...) (*UpdateAuthorizationPolicyOperation, error)
- func (c *Client) UpdateAuthorizationPolicyOperation(name string) *UpdateAuthorizationPolicyOperation
- func (c *Client) UpdateAuthzPolicy(ctx context.Context, req *networksecuritypb.UpdateAuthzPolicyRequest, ...) (*UpdateAuthzPolicyOperation, error)
- func (c *Client) UpdateAuthzPolicyOperation(name string) *UpdateAuthzPolicyOperation
- func (c *Client) UpdateBackendAuthenticationConfig(ctx context.Context, ...) (*UpdateBackendAuthenticationConfigOperation, error)
- func (c *Client) UpdateBackendAuthenticationConfigOperation(name string) *UpdateBackendAuthenticationConfigOperation
- func (c *Client) UpdateClientTlsPolicy(ctx context.Context, req *networksecuritypb.UpdateClientTlsPolicyRequest, ...) (*UpdateClientTlsPolicyOperation, error)
- func (c *Client) UpdateClientTlsPolicyOperation(name string) *UpdateClientTlsPolicyOperation
- func (c *Client) UpdateGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.UpdateGatewaySecurityPolicyRequest, ...) (*UpdateGatewaySecurityPolicyOperation, error)
- func (c *Client) UpdateGatewaySecurityPolicyOperation(name string) *UpdateGatewaySecurityPolicyOperation
- func (c *Client) UpdateGatewaySecurityPolicyRule(ctx context.Context, ...) (*UpdateGatewaySecurityPolicyRuleOperation, error)
- func (c *Client) UpdateGatewaySecurityPolicyRuleOperation(name string) *UpdateGatewaySecurityPolicyRuleOperation
- func (c *Client) UpdateServerTlsPolicy(ctx context.Context, req *networksecuritypb.UpdateServerTlsPolicyRequest, ...) (*UpdateServerTlsPolicyOperation, error)
- func (c *Client) UpdateServerTlsPolicyOperation(name string) *UpdateServerTlsPolicyOperation
- func (c *Client) UpdateTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.UpdateTlsInspectionPolicyRequest, ...) (*UpdateTlsInspectionPolicyOperation, error)
- func (c *Client) UpdateTlsInspectionPolicyOperation(name string) *UpdateTlsInspectionPolicyOperation
- func (c *Client) UpdateUrlList(ctx context.Context, req *networksecuritypb.UpdateUrlListRequest, ...) (*UpdateUrlListOperation, error)
- func (c *Client) UpdateUrlListOperation(name string) *UpdateUrlListOperation
- type ClientTlsPolicyIterator
- type CloneAddressGroupItemsOperation
- func (op *CloneAddressGroupItemsOperation) Done() bool
- func (op *CloneAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CloneAddressGroupItemsOperation) Name() string
- func (op *CloneAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- func (op *CloneAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- type CreateAddressGroupOperation
- func (op *CreateAddressGroupOperation) Done() bool
- func (op *CreateAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateAddressGroupOperation) Name() string
- func (op *CreateAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- func (op *CreateAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- type CreateAuthorizationPolicyOperation
- func (op *CreateAuthorizationPolicyOperation) Done() bool
- func (op *CreateAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateAuthorizationPolicyOperation) Name() string
- func (op *CreateAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
- func (op *CreateAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
- type CreateAuthzPolicyOperation
- func (op *CreateAuthzPolicyOperation) Done() bool
- func (op *CreateAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateAuthzPolicyOperation) Name() string
- func (op *CreateAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
- func (op *CreateAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
- type CreateBackendAuthenticationConfigOperation
- func (op *CreateBackendAuthenticationConfigOperation) Done() bool
- func (op *CreateBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateBackendAuthenticationConfigOperation) Name() string
- func (op *CreateBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
- func (op *CreateBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
- type CreateClientTlsPolicyOperation
- func (op *CreateClientTlsPolicyOperation) Done() bool
- func (op *CreateClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateClientTlsPolicyOperation) Name() string
- func (op *CreateClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
- func (op *CreateClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
- type CreateFirewallEndpointAssociationOperation
- func (op *CreateFirewallEndpointAssociationOperation) Done() bool
- func (op *CreateFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateFirewallEndpointAssociationOperation) Name() string
- func (op *CreateFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
- func (op *CreateFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
- type CreateFirewallEndpointOperation
- func (op *CreateFirewallEndpointOperation) Done() bool
- func (op *CreateFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateFirewallEndpointOperation) Name() string
- func (op *CreateFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- func (op *CreateFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- type CreateGatewaySecurityPolicyOperation
- func (op *CreateGatewaySecurityPolicyOperation) Done() bool
- func (op *CreateGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateGatewaySecurityPolicyOperation) Name() string
- func (op *CreateGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
- func (op *CreateGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
- type CreateGatewaySecurityPolicyRuleOperation
- func (op *CreateGatewaySecurityPolicyRuleOperation) Done() bool
- func (op *CreateGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateGatewaySecurityPolicyRuleOperation) Name() string
- func (op *CreateGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
- func (op *CreateGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
- type CreateInterceptDeploymentGroupOperation
- func (op *CreateInterceptDeploymentGroupOperation) Done() bool
- func (op *CreateInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateInterceptDeploymentGroupOperation) Name() string
- func (op *CreateInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
- func (op *CreateInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
- type CreateInterceptDeploymentOperation
- func (op *CreateInterceptDeploymentOperation) Done() bool
- func (op *CreateInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateInterceptDeploymentOperation) Name() string
- func (op *CreateInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
- func (op *CreateInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
- type CreateInterceptEndpointGroupAssociationOperation
- func (op *CreateInterceptEndpointGroupAssociationOperation) Done() bool
- func (op *CreateInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateInterceptEndpointGroupAssociationOperation) Name() string
- func (op *CreateInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- func (op *CreateInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- type CreateInterceptEndpointGroupOperation
- func (op *CreateInterceptEndpointGroupOperation) Done() bool
- func (op *CreateInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateInterceptEndpointGroupOperation) Name() string
- func (op *CreateInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
- func (op *CreateInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
- type CreateMirroringDeploymentGroupOperation
- func (op *CreateMirroringDeploymentGroupOperation) Done() bool
- func (op *CreateMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateMirroringDeploymentGroupOperation) Name() string
- func (op *CreateMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
- func (op *CreateMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
- type CreateMirroringDeploymentOperation
- func (op *CreateMirroringDeploymentOperation) Done() bool
- func (op *CreateMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateMirroringDeploymentOperation) Name() string
- func (op *CreateMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
- func (op *CreateMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
- type CreateMirroringEndpointGroupAssociationOperation
- func (op *CreateMirroringEndpointGroupAssociationOperation) Done() bool
- func (op *CreateMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateMirroringEndpointGroupAssociationOperation) Name() string
- func (op *CreateMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- func (op *CreateMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- type CreateMirroringEndpointGroupOperation
- func (op *CreateMirroringEndpointGroupOperation) Done() bool
- func (op *CreateMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateMirroringEndpointGroupOperation) Name() string
- func (op *CreateMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
- func (op *CreateMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
- type CreateProjectFirewallEndpointOperation
- func (op *CreateProjectFirewallEndpointOperation) Done() bool
- func (op *CreateProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateProjectFirewallEndpointOperation) Name() string
- func (op *CreateProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- func (op *CreateProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- type CreateSACAttachmentOperation
- func (op *CreateSACAttachmentOperation) Done() bool
- func (op *CreateSACAttachmentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateSACAttachmentOperation) Name() string
- func (op *CreateSACAttachmentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACAttachment, error)
- func (op *CreateSACAttachmentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACAttachment, error)
- type CreateSACRealmOperation
- func (op *CreateSACRealmOperation) Done() bool
- func (op *CreateSACRealmOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateSACRealmOperation) Name() string
- func (op *CreateSACRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACRealm, error)
- func (op *CreateSACRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACRealm, error)
- type CreateSecurityProfileGroupOperation
- func (op *CreateSecurityProfileGroupOperation) Done() bool
- func (op *CreateSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateSecurityProfileGroupOperation) Name() string
- func (op *CreateSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
- func (op *CreateSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
- type CreateSecurityProfileOperation
- func (op *CreateSecurityProfileOperation) Done() bool
- func (op *CreateSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateSecurityProfileOperation) Name() string
- func (op *CreateSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
- func (op *CreateSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
- type CreateServerTlsPolicyOperation
- func (op *CreateServerTlsPolicyOperation) Done() bool
- func (op *CreateServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateServerTlsPolicyOperation) Name() string
- func (op *CreateServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
- func (op *CreateServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
- type CreateTlsInspectionPolicyOperation
- func (op *CreateTlsInspectionPolicyOperation) Done() bool
- func (op *CreateTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateTlsInspectionPolicyOperation) Name() string
- func (op *CreateTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
- func (op *CreateTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
- type CreateUrlListOperation
- func (op *CreateUrlListOperation) Done() bool
- func (op *CreateUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *CreateUrlListOperation) Name() string
- func (op *CreateUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
- func (op *CreateUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
- type DeleteAddressGroupOperation
- func (op *DeleteAddressGroupOperation) Done() bool
- func (op *DeleteAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteAddressGroupOperation) Name() string
- func (op *DeleteAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteAuthorizationPolicyOperation
- func (op *DeleteAuthorizationPolicyOperation) Done() bool
- func (op *DeleteAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteAuthorizationPolicyOperation) Name() string
- func (op *DeleteAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteAuthzPolicyOperation
- func (op *DeleteAuthzPolicyOperation) Done() bool
- func (op *DeleteAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteAuthzPolicyOperation) Name() string
- func (op *DeleteAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteBackendAuthenticationConfigOperation
- func (op *DeleteBackendAuthenticationConfigOperation) Done() bool
- func (op *DeleteBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteBackendAuthenticationConfigOperation) Name() string
- func (op *DeleteBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteClientTlsPolicyOperation
- func (op *DeleteClientTlsPolicyOperation) Done() bool
- func (op *DeleteClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteClientTlsPolicyOperation) Name() string
- func (op *DeleteClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteFirewallEndpointAssociationOperation
- func (op *DeleteFirewallEndpointAssociationOperation) Done() bool
- func (op *DeleteFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteFirewallEndpointAssociationOperation) Name() string
- func (op *DeleteFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteFirewallEndpointOperation
- func (op *DeleteFirewallEndpointOperation) Done() bool
- func (op *DeleteFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteFirewallEndpointOperation) Name() string
- func (op *DeleteFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteGatewaySecurityPolicyOperation
- func (op *DeleteGatewaySecurityPolicyOperation) Done() bool
- func (op *DeleteGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteGatewaySecurityPolicyOperation) Name() string
- func (op *DeleteGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteGatewaySecurityPolicyRuleOperation
- func (op *DeleteGatewaySecurityPolicyRuleOperation) Done() bool
- func (op *DeleteGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteGatewaySecurityPolicyRuleOperation) Name() string
- func (op *DeleteGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteInterceptDeploymentGroupOperation
- func (op *DeleteInterceptDeploymentGroupOperation) Done() bool
- func (op *DeleteInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteInterceptDeploymentGroupOperation) Name() string
- func (op *DeleteInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteInterceptDeploymentOperation
- func (op *DeleteInterceptDeploymentOperation) Done() bool
- func (op *DeleteInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteInterceptDeploymentOperation) Name() string
- func (op *DeleteInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteInterceptEndpointGroupAssociationOperation
- func (op *DeleteInterceptEndpointGroupAssociationOperation) Done() bool
- func (op *DeleteInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteInterceptEndpointGroupAssociationOperation) Name() string
- func (op *DeleteInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteInterceptEndpointGroupOperation
- func (op *DeleteInterceptEndpointGroupOperation) Done() bool
- func (op *DeleteInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteInterceptEndpointGroupOperation) Name() string
- func (op *DeleteInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteMirroringDeploymentGroupOperation
- func (op *DeleteMirroringDeploymentGroupOperation) Done() bool
- func (op *DeleteMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteMirroringDeploymentGroupOperation) Name() string
- func (op *DeleteMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteMirroringDeploymentOperation
- func (op *DeleteMirroringDeploymentOperation) Done() bool
- func (op *DeleteMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteMirroringDeploymentOperation) Name() string
- func (op *DeleteMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteMirroringEndpointGroupAssociationOperation
- func (op *DeleteMirroringEndpointGroupAssociationOperation) Done() bool
- func (op *DeleteMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteMirroringEndpointGroupAssociationOperation) Name() string
- func (op *DeleteMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteMirroringEndpointGroupOperation
- func (op *DeleteMirroringEndpointGroupOperation) Done() bool
- func (op *DeleteMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteMirroringEndpointGroupOperation) Name() string
- func (op *DeleteMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteProjectFirewallEndpointOperation
- func (op *DeleteProjectFirewallEndpointOperation) Done() bool
- func (op *DeleteProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteProjectFirewallEndpointOperation) Name() string
- func (op *DeleteProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSACAttachmentOperation
- func (op *DeleteSACAttachmentOperation) Done() bool
- func (op *DeleteSACAttachmentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteSACAttachmentOperation) Name() string
- func (op *DeleteSACAttachmentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSACAttachmentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSACRealmOperation
- func (op *DeleteSACRealmOperation) Done() bool
- func (op *DeleteSACRealmOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteSACRealmOperation) Name() string
- func (op *DeleteSACRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSACRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSecurityProfileGroupOperation
- func (op *DeleteSecurityProfileGroupOperation) Done() bool
- func (op *DeleteSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteSecurityProfileGroupOperation) Name() string
- func (op *DeleteSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSecurityProfileOperation
- func (op *DeleteSecurityProfileOperation) Done() bool
- func (op *DeleteSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteSecurityProfileOperation) Name() string
- func (op *DeleteSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteServerTlsPolicyOperation
- func (op *DeleteServerTlsPolicyOperation) Done() bool
- func (op *DeleteServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteServerTlsPolicyOperation) Name() string
- func (op *DeleteServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteTlsInspectionPolicyOperation
- func (op *DeleteTlsInspectionPolicyOperation) Done() bool
- func (op *DeleteTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteTlsInspectionPolicyOperation) Name() string
- func (op *DeleteTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteUrlListOperation
- func (op *DeleteUrlListOperation) Done() bool
- func (op *DeleteUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *DeleteUrlListOperation) Name() string
- func (op *DeleteUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DnsThreatDetectorCallOptions
- type DnsThreatDetectorClient
- func (c *DnsThreatDetectorClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *DnsThreatDetectorClient) Close() error
- func (c *DnsThreatDetectorClient) Connection() *grpc.ClientConndeprecated
- func (c *DnsThreatDetectorClient) CreateDnsThreatDetector(ctx context.Context, req *networksecuritypb.CreateDnsThreatDetectorRequest, ...) (*networksecuritypb.DnsThreatDetector, error)
- func (c *DnsThreatDetectorClient) DeleteDnsThreatDetector(ctx context.Context, req *networksecuritypb.DeleteDnsThreatDetectorRequest, ...) error
- func (c *DnsThreatDetectorClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *DnsThreatDetectorClient) GetDnsThreatDetector(ctx context.Context, req *networksecuritypb.GetDnsThreatDetectorRequest, ...) (*networksecuritypb.DnsThreatDetector, error)
- func (c *DnsThreatDetectorClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *DnsThreatDetectorClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *DnsThreatDetectorClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *DnsThreatDetectorClient) ListDnsThreatDetectors(ctx context.Context, req *networksecuritypb.ListDnsThreatDetectorsRequest, ...) *DnsThreatDetectorIterator
- func (c *DnsThreatDetectorClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *DnsThreatDetectorClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *DnsThreatDetectorClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *DnsThreatDetectorClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *DnsThreatDetectorClient) UpdateDnsThreatDetector(ctx context.Context, req *networksecuritypb.UpdateDnsThreatDetectorRequest, ...) (*networksecuritypb.DnsThreatDetector, error)
- type DnsThreatDetectorIterator
- type FirewallActivationCallOptions
- type FirewallActivationClient
- func (c *FirewallActivationClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *FirewallActivationClient) Close() error
- func (c *FirewallActivationClient) Connection() *grpc.ClientConndeprecated
- func (c *FirewallActivationClient) CreateFirewallEndpoint(ctx context.Context, req *networksecuritypb.CreateFirewallEndpointRequest, ...) (*CreateFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) CreateFirewallEndpointAssociation(ctx context.Context, ...) (*CreateFirewallEndpointAssociationOperation, error)
- func (c *FirewallActivationClient) CreateFirewallEndpointAssociationOperation(name string) *CreateFirewallEndpointAssociationOperation
- func (c *FirewallActivationClient) CreateFirewallEndpointOperation(name string) *CreateFirewallEndpointOperation
- func (c *FirewallActivationClient) CreateProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.CreateFirewallEndpointRequest, ...) (*CreateProjectFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) CreateProjectFirewallEndpointOperation(name string) *CreateProjectFirewallEndpointOperation
- func (c *FirewallActivationClient) DeleteFirewallEndpoint(ctx context.Context, req *networksecuritypb.DeleteFirewallEndpointRequest, ...) (*DeleteFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) DeleteFirewallEndpointAssociation(ctx context.Context, ...) (*DeleteFirewallEndpointAssociationOperation, error)
- func (c *FirewallActivationClient) DeleteFirewallEndpointAssociationOperation(name string) *DeleteFirewallEndpointAssociationOperation
- func (c *FirewallActivationClient) DeleteFirewallEndpointOperation(name string) *DeleteFirewallEndpointOperation
- func (c *FirewallActivationClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *FirewallActivationClient) DeleteProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.DeleteFirewallEndpointRequest, ...) (*DeleteProjectFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) DeleteProjectFirewallEndpointOperation(name string) *DeleteProjectFirewallEndpointOperation
- func (c *FirewallActivationClient) GetFirewallEndpoint(ctx context.Context, req *networksecuritypb.GetFirewallEndpointRequest, ...) (*networksecuritypb.FirewallEndpoint, error)
- func (c *FirewallActivationClient) GetFirewallEndpointAssociation(ctx context.Context, ...) (*networksecuritypb.FirewallEndpointAssociation, error)
- func (c *FirewallActivationClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *FirewallActivationClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *FirewallActivationClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *FirewallActivationClient) GetProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.GetFirewallEndpointRequest, ...) (*networksecuritypb.FirewallEndpoint, error)
- func (c *FirewallActivationClient) ListFirewallEndpointAssociations(ctx context.Context, ...) *FirewallEndpointAssociationIterator
- func (c *FirewallActivationClient) ListFirewallEndpoints(ctx context.Context, req *networksecuritypb.ListFirewallEndpointsRequest, ...) *FirewallEndpointIterator
- func (c *FirewallActivationClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *FirewallActivationClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *FirewallActivationClient) ListProjectFirewallEndpoints(ctx context.Context, req *networksecuritypb.ListFirewallEndpointsRequest, ...) *FirewallEndpointIterator
- func (c *FirewallActivationClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *FirewallActivationClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *FirewallActivationClient) UpdateFirewallEndpoint(ctx context.Context, req *networksecuritypb.UpdateFirewallEndpointRequest, ...) (*UpdateFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) UpdateFirewallEndpointAssociation(ctx context.Context, ...) (*UpdateFirewallEndpointAssociationOperation, error)
- func (c *FirewallActivationClient) UpdateFirewallEndpointAssociationOperation(name string) *UpdateFirewallEndpointAssociationOperation
- func (c *FirewallActivationClient) UpdateFirewallEndpointOperation(name string) *UpdateFirewallEndpointOperation
- func (c *FirewallActivationClient) UpdateProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.UpdateFirewallEndpointRequest, ...) (*UpdateProjectFirewallEndpointOperation, error)
- func (c *FirewallActivationClient) UpdateProjectFirewallEndpointOperation(name string) *UpdateProjectFirewallEndpointOperation
- type FirewallEndpointAssociationIterator
- func (it *FirewallEndpointAssociationIterator) All() iter.Seq2[*networksecuritypb.FirewallEndpointAssociation, error]
- func (it *FirewallEndpointAssociationIterator) Next() (*networksecuritypb.FirewallEndpointAssociation, error)
- func (it *FirewallEndpointAssociationIterator) PageInfo() *iterator.PageInfo
- type FirewallEndpointIterator
- type GatewaySecurityPolicyIterator
- type GatewaySecurityPolicyRuleIterator
- type InterceptCallOptions
- type InterceptClient
- func (c *InterceptClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *InterceptClient) Close() error
- func (c *InterceptClient) Connection() *grpc.ClientConndeprecated
- func (c *InterceptClient) CreateInterceptDeployment(ctx context.Context, req *networksecuritypb.CreateInterceptDeploymentRequest, ...) (*CreateInterceptDeploymentOperation, error)
- func (c *InterceptClient) CreateInterceptDeploymentGroup(ctx context.Context, ...) (*CreateInterceptDeploymentGroupOperation, error)
- func (c *InterceptClient) CreateInterceptDeploymentGroupOperation(name string) *CreateInterceptDeploymentGroupOperation
- func (c *InterceptClient) CreateInterceptDeploymentOperation(name string) *CreateInterceptDeploymentOperation
- func (c *InterceptClient) CreateInterceptEndpointGroup(ctx context.Context, ...) (*CreateInterceptEndpointGroupOperation, error)
- func (c *InterceptClient) CreateInterceptEndpointGroupAssociation(ctx context.Context, ...) (*CreateInterceptEndpointGroupAssociationOperation, error)
- func (c *InterceptClient) CreateInterceptEndpointGroupAssociationOperation(name string) *CreateInterceptEndpointGroupAssociationOperation
- func (c *InterceptClient) CreateInterceptEndpointGroupOperation(name string) *CreateInterceptEndpointGroupOperation
- func (c *InterceptClient) DeleteInterceptDeployment(ctx context.Context, req *networksecuritypb.DeleteInterceptDeploymentRequest, ...) (*DeleteInterceptDeploymentOperation, error)
- func (c *InterceptClient) DeleteInterceptDeploymentGroup(ctx context.Context, ...) (*DeleteInterceptDeploymentGroupOperation, error)
- func (c *InterceptClient) DeleteInterceptDeploymentGroupOperation(name string) *DeleteInterceptDeploymentGroupOperation
- func (c *InterceptClient) DeleteInterceptDeploymentOperation(name string) *DeleteInterceptDeploymentOperation
- func (c *InterceptClient) DeleteInterceptEndpointGroup(ctx context.Context, ...) (*DeleteInterceptEndpointGroupOperation, error)
- func (c *InterceptClient) DeleteInterceptEndpointGroupAssociation(ctx context.Context, ...) (*DeleteInterceptEndpointGroupAssociationOperation, error)
- func (c *InterceptClient) DeleteInterceptEndpointGroupAssociationOperation(name string) *DeleteInterceptEndpointGroupAssociationOperation
- func (c *InterceptClient) DeleteInterceptEndpointGroupOperation(name string) *DeleteInterceptEndpointGroupOperation
- func (c *InterceptClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *InterceptClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *InterceptClient) GetInterceptDeployment(ctx context.Context, req *networksecuritypb.GetInterceptDeploymentRequest, ...) (*networksecuritypb.InterceptDeployment, error)
- func (c *InterceptClient) GetInterceptDeploymentGroup(ctx context.Context, req *networksecuritypb.GetInterceptDeploymentGroupRequest, ...) (*networksecuritypb.InterceptDeploymentGroup, error)
- func (c *InterceptClient) GetInterceptEndpointGroup(ctx context.Context, req *networksecuritypb.GetInterceptEndpointGroupRequest, ...) (*networksecuritypb.InterceptEndpointGroup, error)
- func (c *InterceptClient) GetInterceptEndpointGroupAssociation(ctx context.Context, ...) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- func (c *InterceptClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *InterceptClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *InterceptClient) ListInterceptDeploymentGroups(ctx context.Context, ...) *InterceptDeploymentGroupIterator
- func (c *InterceptClient) ListInterceptDeployments(ctx context.Context, req *networksecuritypb.ListInterceptDeploymentsRequest, ...) *InterceptDeploymentIterator
- func (c *InterceptClient) ListInterceptEndpointGroupAssociations(ctx context.Context, ...) *InterceptEndpointGroupAssociationIterator
- func (c *InterceptClient) ListInterceptEndpointGroups(ctx context.Context, req *networksecuritypb.ListInterceptEndpointGroupsRequest, ...) *InterceptEndpointGroupIterator
- func (c *InterceptClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *InterceptClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *InterceptClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *InterceptClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *InterceptClient) UpdateInterceptDeployment(ctx context.Context, req *networksecuritypb.UpdateInterceptDeploymentRequest, ...) (*UpdateInterceptDeploymentOperation, error)
- func (c *InterceptClient) UpdateInterceptDeploymentGroup(ctx context.Context, ...) (*UpdateInterceptDeploymentGroupOperation, error)
- func (c *InterceptClient) UpdateInterceptDeploymentGroupOperation(name string) *UpdateInterceptDeploymentGroupOperation
- func (c *InterceptClient) UpdateInterceptDeploymentOperation(name string) *UpdateInterceptDeploymentOperation
- func (c *InterceptClient) UpdateInterceptEndpointGroup(ctx context.Context, ...) (*UpdateInterceptEndpointGroupOperation, error)
- func (c *InterceptClient) UpdateInterceptEndpointGroupAssociation(ctx context.Context, ...) (*UpdateInterceptEndpointGroupAssociationOperation, error)
- func (c *InterceptClient) UpdateInterceptEndpointGroupAssociationOperation(name string) *UpdateInterceptEndpointGroupAssociationOperation
- func (c *InterceptClient) UpdateInterceptEndpointGroupOperation(name string) *UpdateInterceptEndpointGroupOperation
- type InterceptDeploymentGroupIterator
- type InterceptDeploymentIterator
- type InterceptEndpointGroupAssociationIterator
- func (it *InterceptEndpointGroupAssociationIterator) All() iter.Seq2[*networksecuritypb.InterceptEndpointGroupAssociation, error]
- func (it *InterceptEndpointGroupAssociationIterator) Next() (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- func (it *InterceptEndpointGroupAssociationIterator) PageInfo() *iterator.PageInfo
- type InterceptEndpointGroupIterator
- type ListAddressGroupReferencesResponse_AddressGroupReferenceIterator
- func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) All() ...
- func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) Next() (*networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference, ...)
- func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) PageInfo() *iterator.PageInfo
- type LocationIterator
- type MirroringCallOptions
- type MirroringClient
- func (c *MirroringClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *MirroringClient) Close() error
- func (c *MirroringClient) Connection() *grpc.ClientConndeprecated
- func (c *MirroringClient) CreateMirroringDeployment(ctx context.Context, req *networksecuritypb.CreateMirroringDeploymentRequest, ...) (*CreateMirroringDeploymentOperation, error)
- func (c *MirroringClient) CreateMirroringDeploymentGroup(ctx context.Context, ...) (*CreateMirroringDeploymentGroupOperation, error)
- func (c *MirroringClient) CreateMirroringDeploymentGroupOperation(name string) *CreateMirroringDeploymentGroupOperation
- func (c *MirroringClient) CreateMirroringDeploymentOperation(name string) *CreateMirroringDeploymentOperation
- func (c *MirroringClient) CreateMirroringEndpointGroup(ctx context.Context, ...) (*CreateMirroringEndpointGroupOperation, error)
- func (c *MirroringClient) CreateMirroringEndpointGroupAssociation(ctx context.Context, ...) (*CreateMirroringEndpointGroupAssociationOperation, error)
- func (c *MirroringClient) CreateMirroringEndpointGroupAssociationOperation(name string) *CreateMirroringEndpointGroupAssociationOperation
- func (c *MirroringClient) CreateMirroringEndpointGroupOperation(name string) *CreateMirroringEndpointGroupOperation
- func (c *MirroringClient) DeleteMirroringDeployment(ctx context.Context, req *networksecuritypb.DeleteMirroringDeploymentRequest, ...) (*DeleteMirroringDeploymentOperation, error)
- func (c *MirroringClient) DeleteMirroringDeploymentGroup(ctx context.Context, ...) (*DeleteMirroringDeploymentGroupOperation, error)
- func (c *MirroringClient) DeleteMirroringDeploymentGroupOperation(name string) *DeleteMirroringDeploymentGroupOperation
- func (c *MirroringClient) DeleteMirroringDeploymentOperation(name string) *DeleteMirroringDeploymentOperation
- func (c *MirroringClient) DeleteMirroringEndpointGroup(ctx context.Context, ...) (*DeleteMirroringEndpointGroupOperation, error)
- func (c *MirroringClient) DeleteMirroringEndpointGroupAssociation(ctx context.Context, ...) (*DeleteMirroringEndpointGroupAssociationOperation, error)
- func (c *MirroringClient) DeleteMirroringEndpointGroupAssociationOperation(name string) *DeleteMirroringEndpointGroupAssociationOperation
- func (c *MirroringClient) DeleteMirroringEndpointGroupOperation(name string) *DeleteMirroringEndpointGroupOperation
- func (c *MirroringClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *MirroringClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *MirroringClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *MirroringClient) GetMirroringDeployment(ctx context.Context, req *networksecuritypb.GetMirroringDeploymentRequest, ...) (*networksecuritypb.MirroringDeployment, error)
- func (c *MirroringClient) GetMirroringDeploymentGroup(ctx context.Context, req *networksecuritypb.GetMirroringDeploymentGroupRequest, ...) (*networksecuritypb.MirroringDeploymentGroup, error)
- func (c *MirroringClient) GetMirroringEndpointGroup(ctx context.Context, req *networksecuritypb.GetMirroringEndpointGroupRequest, ...) (*networksecuritypb.MirroringEndpointGroup, error)
- func (c *MirroringClient) GetMirroringEndpointGroupAssociation(ctx context.Context, ...) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- func (c *MirroringClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *MirroringClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *MirroringClient) ListMirroringDeploymentGroups(ctx context.Context, ...) *MirroringDeploymentGroupIterator
- func (c *MirroringClient) ListMirroringDeployments(ctx context.Context, req *networksecuritypb.ListMirroringDeploymentsRequest, ...) *MirroringDeploymentIterator
- func (c *MirroringClient) ListMirroringEndpointGroupAssociations(ctx context.Context, ...) *MirroringEndpointGroupAssociationIterator
- func (c *MirroringClient) ListMirroringEndpointGroups(ctx context.Context, req *networksecuritypb.ListMirroringEndpointGroupsRequest, ...) *MirroringEndpointGroupIterator
- func (c *MirroringClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *MirroringClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *MirroringClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *MirroringClient) UpdateMirroringDeployment(ctx context.Context, req *networksecuritypb.UpdateMirroringDeploymentRequest, ...) (*UpdateMirroringDeploymentOperation, error)
- func (c *MirroringClient) UpdateMirroringDeploymentGroup(ctx context.Context, ...) (*UpdateMirroringDeploymentGroupOperation, error)
- func (c *MirroringClient) UpdateMirroringDeploymentGroupOperation(name string) *UpdateMirroringDeploymentGroupOperation
- func (c *MirroringClient) UpdateMirroringDeploymentOperation(name string) *UpdateMirroringDeploymentOperation
- func (c *MirroringClient) UpdateMirroringEndpointGroup(ctx context.Context, ...) (*UpdateMirroringEndpointGroupOperation, error)
- func (c *MirroringClient) UpdateMirroringEndpointGroupAssociation(ctx context.Context, ...) (*UpdateMirroringEndpointGroupAssociationOperation, error)
- func (c *MirroringClient) UpdateMirroringEndpointGroupAssociationOperation(name string) *UpdateMirroringEndpointGroupAssociationOperation
- func (c *MirroringClient) UpdateMirroringEndpointGroupOperation(name string) *UpdateMirroringEndpointGroupOperation
- type MirroringDeploymentGroupIterator
- type MirroringDeploymentIterator
- type MirroringEndpointGroupAssociationIterator
- func (it *MirroringEndpointGroupAssociationIterator) All() iter.Seq2[*networksecuritypb.MirroringEndpointGroupAssociation, error]
- func (it *MirroringEndpointGroupAssociationIterator) Next() (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- func (it *MirroringEndpointGroupAssociationIterator) PageInfo() *iterator.PageInfo
- type MirroringEndpointGroupIterator
- type OperationIterator
- type OrganizationAddressGroupCallOptions
- type OrganizationAddressGroupClient
- func (c *OrganizationAddressGroupClient) AddAddressGroupItems(ctx context.Context, req *networksecuritypb.AddAddressGroupItemsRequest, ...) (*AddAddressGroupItemsOperation, error)
- func (c *OrganizationAddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation
- func (c *OrganizationAddressGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *OrganizationAddressGroupClient) CloneAddressGroupItems(ctx context.Context, req *networksecuritypb.CloneAddressGroupItemsRequest, ...) (*CloneAddressGroupItemsOperation, error)
- func (c *OrganizationAddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation
- func (c *OrganizationAddressGroupClient) Close() error
- func (c *OrganizationAddressGroupClient) Connection() *grpc.ClientConndeprecated
- func (c *OrganizationAddressGroupClient) CreateAddressGroup(ctx context.Context, req *networksecuritypb.CreateAddressGroupRequest, ...) (*CreateAddressGroupOperation, error)
- func (c *OrganizationAddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation
- func (c *OrganizationAddressGroupClient) DeleteAddressGroup(ctx context.Context, req *networksecuritypb.DeleteAddressGroupRequest, ...) (*DeleteAddressGroupOperation, error)
- func (c *OrganizationAddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation
- func (c *OrganizationAddressGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *OrganizationAddressGroupClient) GetAddressGroup(ctx context.Context, req *networksecuritypb.GetAddressGroupRequest, ...) (*networksecuritypb.AddressGroup, error)
- func (c *OrganizationAddressGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *OrganizationAddressGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *OrganizationAddressGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *OrganizationAddressGroupClient) ListAddressGroupReferences(ctx context.Context, req *networksecuritypb.ListAddressGroupReferencesRequest, ...) *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator
- func (c *OrganizationAddressGroupClient) ListAddressGroups(ctx context.Context, req *networksecuritypb.ListAddressGroupsRequest, ...) *AddressGroupIterator
- func (c *OrganizationAddressGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *OrganizationAddressGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *OrganizationAddressGroupClient) RemoveAddressGroupItems(ctx context.Context, req *networksecuritypb.RemoveAddressGroupItemsRequest, ...) (*RemoveAddressGroupItemsOperation, error)
- func (c *OrganizationAddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation
- func (c *OrganizationAddressGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *OrganizationAddressGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *OrganizationAddressGroupClient) UpdateAddressGroup(ctx context.Context, req *networksecuritypb.UpdateAddressGroupRequest, ...) (*UpdateAddressGroupOperation, error)
- func (c *OrganizationAddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation
- type OrganizationSecurityProfileGroupCallOptions
- type OrganizationSecurityProfileGroupClient
- func (c *OrganizationSecurityProfileGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *OrganizationSecurityProfileGroupClient) Close() error
- func (c *OrganizationSecurityProfileGroupClient) Connection() *grpc.ClientConndeprecated
- func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfile(ctx context.Context, req *networksecuritypb.CreateSecurityProfileRequest, ...) (*CreateSecurityProfileOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.CreateSecurityProfileGroupRequest, ...) (*CreateSecurityProfileGroupOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation
- func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation
- func (c *OrganizationSecurityProfileGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfile(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileRequest, ...) (*DeleteSecurityProfileOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroup(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileGroupRequest, ...) (*DeleteSecurityProfileGroupOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation
- func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation
- func (c *OrganizationSecurityProfileGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *OrganizationSecurityProfileGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *OrganizationSecurityProfileGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *OrganizationSecurityProfileGroupClient) GetSecurityProfile(ctx context.Context, req *networksecuritypb.GetSecurityProfileRequest, ...) (*networksecuritypb.SecurityProfile, error)
- func (c *OrganizationSecurityProfileGroupClient) GetSecurityProfileGroup(ctx context.Context, req *networksecuritypb.GetSecurityProfileGroupRequest, ...) (*networksecuritypb.SecurityProfileGroup, error)
- func (c *OrganizationSecurityProfileGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *OrganizationSecurityProfileGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *OrganizationSecurityProfileGroupClient) ListSecurityProfileGroups(ctx context.Context, req *networksecuritypb.ListSecurityProfileGroupsRequest, ...) *SecurityProfileGroupIterator
- func (c *OrganizationSecurityProfileGroupClient) ListSecurityProfiles(ctx context.Context, req *networksecuritypb.ListSecurityProfilesRequest, ...) *SecurityProfileIterator
- func (c *OrganizationSecurityProfileGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *OrganizationSecurityProfileGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfile(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileRequest, ...) (*UpdateSecurityProfileOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileGroupRequest, ...) (*UpdateSecurityProfileGroupOperation, error)
- func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation
- func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation
- type RemoveAddressGroupItemsOperation
- func (op *RemoveAddressGroupItemsOperation) Done() bool
- func (op *RemoveAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *RemoveAddressGroupItemsOperation) Name() string
- func (op *RemoveAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- func (op *RemoveAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- type SACAttachmentIterator
- type SACRealmIterator
- type SSERealmCallOptions
- type SSERealmClient
- func (c *SSERealmClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *SSERealmClient) Close() error
- func (c *SSERealmClient) Connection() *grpc.ClientConndeprecated
- func (c *SSERealmClient) CreateSACAttachment(ctx context.Context, req *networksecuritypb.CreateSACAttachmentRequest, ...) (*CreateSACAttachmentOperation, error)
- func (c *SSERealmClient) CreateSACAttachmentOperation(name string) *CreateSACAttachmentOperation
- func (c *SSERealmClient) CreateSACRealm(ctx context.Context, req *networksecuritypb.CreateSACRealmRequest, ...) (*CreateSACRealmOperation, error)
- func (c *SSERealmClient) CreateSACRealmOperation(name string) *CreateSACRealmOperation
- func (c *SSERealmClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *SSERealmClient) DeleteSACAttachment(ctx context.Context, req *networksecuritypb.DeleteSACAttachmentRequest, ...) (*DeleteSACAttachmentOperation, error)
- func (c *SSERealmClient) DeleteSACAttachmentOperation(name string) *DeleteSACAttachmentOperation
- func (c *SSERealmClient) DeleteSACRealm(ctx context.Context, req *networksecuritypb.DeleteSACRealmRequest, ...) (*DeleteSACRealmOperation, error)
- func (c *SSERealmClient) DeleteSACRealmOperation(name string) *DeleteSACRealmOperation
- func (c *SSERealmClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *SSERealmClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *SSERealmClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *SSERealmClient) GetSACAttachment(ctx context.Context, req *networksecuritypb.GetSACAttachmentRequest, ...) (*networksecuritypb.SACAttachment, error)
- func (c *SSERealmClient) GetSACRealm(ctx context.Context, req *networksecuritypb.GetSACRealmRequest, ...) (*networksecuritypb.SACRealm, error)
- func (c *SSERealmClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *SSERealmClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *SSERealmClient) ListSACAttachments(ctx context.Context, req *networksecuritypb.ListSACAttachmentsRequest, ...) *SACAttachmentIterator
- func (c *SSERealmClient) ListSACRealms(ctx context.Context, req *networksecuritypb.ListSACRealmsRequest, ...) *SACRealmIterator
- func (c *SSERealmClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *SSERealmClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- type SecurityProfileGroupCallOptions
- type SecurityProfileGroupClient
- func (c *SecurityProfileGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *SecurityProfileGroupClient) Close() error
- func (c *SecurityProfileGroupClient) Connection() *grpc.ClientConndeprecated
- func (c *SecurityProfileGroupClient) CreateSecurityProfile(ctx context.Context, req *networksecuritypb.CreateSecurityProfileRequest, ...) (*CreateSecurityProfileOperation, error)
- func (c *SecurityProfileGroupClient) CreateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.CreateSecurityProfileGroupRequest, ...) (*CreateSecurityProfileGroupOperation, error)
- func (c *SecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation
- func (c *SecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation
- func (c *SecurityProfileGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *SecurityProfileGroupClient) DeleteSecurityProfile(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileRequest, ...) (*DeleteSecurityProfileOperation, error)
- func (c *SecurityProfileGroupClient) DeleteSecurityProfileGroup(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileGroupRequest, ...) (*DeleteSecurityProfileGroupOperation, error)
- func (c *SecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation
- func (c *SecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation
- func (c *SecurityProfileGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *SecurityProfileGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, ...) (*locationpb.Location, error)
- func (c *SecurityProfileGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *SecurityProfileGroupClient) GetSecurityProfile(ctx context.Context, req *networksecuritypb.GetSecurityProfileRequest, ...) (*networksecuritypb.SecurityProfile, error)
- func (c *SecurityProfileGroupClient) GetSecurityProfileGroup(ctx context.Context, req *networksecuritypb.GetSecurityProfileGroupRequest, ...) (*networksecuritypb.SecurityProfileGroup, error)
- func (c *SecurityProfileGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, ...) *LocationIterator
- func (c *SecurityProfileGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *SecurityProfileGroupClient) ListSecurityProfileGroups(ctx context.Context, req *networksecuritypb.ListSecurityProfileGroupsRequest, ...) *SecurityProfileGroupIterator
- func (c *SecurityProfileGroupClient) ListSecurityProfiles(ctx context.Context, req *networksecuritypb.ListSecurityProfilesRequest, ...) *SecurityProfileIterator
- func (c *SecurityProfileGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
- func (c *SecurityProfileGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, ...) (*iampb.TestIamPermissionsResponse, error)
- func (c *SecurityProfileGroupClient) UpdateSecurityProfile(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileRequest, ...) (*UpdateSecurityProfileOperation, error)
- func (c *SecurityProfileGroupClient) UpdateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileGroupRequest, ...) (*UpdateSecurityProfileGroupOperation, error)
- func (c *SecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation
- func (c *SecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation
- type SecurityProfileGroupIterator
- type SecurityProfileIterator
- type ServerTlsPolicyIterator
- type TlsInspectionPolicyIterator
- type UpdateAddressGroupOperation
- func (op *UpdateAddressGroupOperation) Done() bool
- func (op *UpdateAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateAddressGroupOperation) Name() string
- func (op *UpdateAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- func (op *UpdateAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
- type UpdateAuthorizationPolicyOperation
- func (op *UpdateAuthorizationPolicyOperation) Done() bool
- func (op *UpdateAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateAuthorizationPolicyOperation) Name() string
- func (op *UpdateAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
- func (op *UpdateAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
- type UpdateAuthzPolicyOperation
- func (op *UpdateAuthzPolicyOperation) Done() bool
- func (op *UpdateAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateAuthzPolicyOperation) Name() string
- func (op *UpdateAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
- func (op *UpdateAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
- type UpdateBackendAuthenticationConfigOperation
- func (op *UpdateBackendAuthenticationConfigOperation) Done() bool
- func (op *UpdateBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateBackendAuthenticationConfigOperation) Name() string
- func (op *UpdateBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
- func (op *UpdateBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
- type UpdateClientTlsPolicyOperation
- func (op *UpdateClientTlsPolicyOperation) Done() bool
- func (op *UpdateClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateClientTlsPolicyOperation) Name() string
- func (op *UpdateClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
- func (op *UpdateClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
- type UpdateFirewallEndpointAssociationOperation
- func (op *UpdateFirewallEndpointAssociationOperation) Done() bool
- func (op *UpdateFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateFirewallEndpointAssociationOperation) Name() string
- func (op *UpdateFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
- func (op *UpdateFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
- type UpdateFirewallEndpointOperation
- func (op *UpdateFirewallEndpointOperation) Done() bool
- func (op *UpdateFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateFirewallEndpointOperation) Name() string
- func (op *UpdateFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- func (op *UpdateFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- type UpdateGatewaySecurityPolicyOperation
- func (op *UpdateGatewaySecurityPolicyOperation) Done() bool
- func (op *UpdateGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateGatewaySecurityPolicyOperation) Name() string
- func (op *UpdateGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
- func (op *UpdateGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
- type UpdateGatewaySecurityPolicyRuleOperation
- func (op *UpdateGatewaySecurityPolicyRuleOperation) Done() bool
- func (op *UpdateGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateGatewaySecurityPolicyRuleOperation) Name() string
- func (op *UpdateGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
- func (op *UpdateGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
- type UpdateInterceptDeploymentGroupOperation
- func (op *UpdateInterceptDeploymentGroupOperation) Done() bool
- func (op *UpdateInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateInterceptDeploymentGroupOperation) Name() string
- func (op *UpdateInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
- func (op *UpdateInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
- type UpdateInterceptDeploymentOperation
- func (op *UpdateInterceptDeploymentOperation) Done() bool
- func (op *UpdateInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateInterceptDeploymentOperation) Name() string
- func (op *UpdateInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
- func (op *UpdateInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
- type UpdateInterceptEndpointGroupAssociationOperation
- func (op *UpdateInterceptEndpointGroupAssociationOperation) Done() bool
- func (op *UpdateInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateInterceptEndpointGroupAssociationOperation) Name() string
- func (op *UpdateInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- func (op *UpdateInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
- type UpdateInterceptEndpointGroupOperation
- func (op *UpdateInterceptEndpointGroupOperation) Done() bool
- func (op *UpdateInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateInterceptEndpointGroupOperation) Name() string
- func (op *UpdateInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
- func (op *UpdateInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
- type UpdateMirroringDeploymentGroupOperation
- func (op *UpdateMirroringDeploymentGroupOperation) Done() bool
- func (op *UpdateMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateMirroringDeploymentGroupOperation) Name() string
- func (op *UpdateMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
- func (op *UpdateMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
- type UpdateMirroringDeploymentOperation
- func (op *UpdateMirroringDeploymentOperation) Done() bool
- func (op *UpdateMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateMirroringDeploymentOperation) Name() string
- func (op *UpdateMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
- func (op *UpdateMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
- type UpdateMirroringEndpointGroupAssociationOperation
- func (op *UpdateMirroringEndpointGroupAssociationOperation) Done() bool
- func (op *UpdateMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateMirroringEndpointGroupAssociationOperation) Name() string
- func (op *UpdateMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- func (op *UpdateMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
- type UpdateMirroringEndpointGroupOperation
- func (op *UpdateMirroringEndpointGroupOperation) Done() bool
- func (op *UpdateMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateMirroringEndpointGroupOperation) Name() string
- func (op *UpdateMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
- func (op *UpdateMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
- type UpdateProjectFirewallEndpointOperation
- func (op *UpdateProjectFirewallEndpointOperation) Done() bool
- func (op *UpdateProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateProjectFirewallEndpointOperation) Name() string
- func (op *UpdateProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- func (op *UpdateProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
- type UpdateSecurityProfileGroupOperation
- func (op *UpdateSecurityProfileGroupOperation) Done() bool
- func (op *UpdateSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateSecurityProfileGroupOperation) Name() string
- func (op *UpdateSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
- func (op *UpdateSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
- type UpdateSecurityProfileOperation
- func (op *UpdateSecurityProfileOperation) Done() bool
- func (op *UpdateSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateSecurityProfileOperation) Name() string
- func (op *UpdateSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
- func (op *UpdateSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
- type UpdateServerTlsPolicyOperation
- func (op *UpdateServerTlsPolicyOperation) Done() bool
- func (op *UpdateServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateServerTlsPolicyOperation) Name() string
- func (op *UpdateServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
- func (op *UpdateServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
- type UpdateTlsInspectionPolicyOperation
- func (op *UpdateTlsInspectionPolicyOperation) Done() bool
- func (op *UpdateTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateTlsInspectionPolicyOperation) Name() string
- func (op *UpdateTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
- func (op *UpdateTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
- type UpdateUrlListOperation
- func (op *UpdateUrlListOperation) Done() bool
- func (op *UpdateUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
- func (op *UpdateUrlListOperation) Name() string
- func (op *UpdateUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
- func (op *UpdateUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
- type UrlListIterator
Examples ¶
- AddressGroupClient.AddAddressGroupItems
- AddressGroupClient.CancelOperation
- AddressGroupClient.CloneAddressGroupItems
- AddressGroupClient.CreateAddressGroup
- AddressGroupClient.DeleteAddressGroup
- AddressGroupClient.DeleteOperation
- AddressGroupClient.GetAddressGroup
- AddressGroupClient.GetIamPolicy
- AddressGroupClient.GetLocation
- AddressGroupClient.GetOperation
- AddressGroupClient.ListAddressGroupReferences
- AddressGroupClient.ListAddressGroupReferences (All)
- AddressGroupClient.ListAddressGroups
- AddressGroupClient.ListAddressGroups (All)
- AddressGroupClient.ListLocations
- AddressGroupClient.ListLocations (All)
- AddressGroupClient.ListOperations
- AddressGroupClient.ListOperations (All)
- AddressGroupClient.RemoveAddressGroupItems
- AddressGroupClient.SetIamPolicy
- AddressGroupClient.TestIamPermissions
- AddressGroupClient.UpdateAddressGroup
- Client.CancelOperation
- Client.CreateAuthorizationPolicy
- Client.CreateAuthzPolicy
- Client.CreateBackendAuthenticationConfig
- Client.CreateClientTlsPolicy
- Client.CreateGatewaySecurityPolicy
- Client.CreateGatewaySecurityPolicyRule
- Client.CreateServerTlsPolicy
- Client.CreateTlsInspectionPolicy
- Client.CreateUrlList
- Client.DeleteAuthorizationPolicy
- Client.DeleteAuthzPolicy
- Client.DeleteBackendAuthenticationConfig
- Client.DeleteClientTlsPolicy
- Client.DeleteGatewaySecurityPolicy
- Client.DeleteGatewaySecurityPolicyRule
- Client.DeleteOperation
- Client.DeleteServerTlsPolicy
- Client.DeleteTlsInspectionPolicy
- Client.DeleteUrlList
- Client.GetAuthorizationPolicy
- Client.GetAuthzPolicy
- Client.GetBackendAuthenticationConfig
- Client.GetClientTlsPolicy
- Client.GetGatewaySecurityPolicy
- Client.GetGatewaySecurityPolicyRule
- Client.GetIamPolicy
- Client.GetLocation
- Client.GetOperation
- Client.GetServerTlsPolicy
- Client.GetTlsInspectionPolicy
- Client.GetUrlList
- Client.ListAuthorizationPolicies
- Client.ListAuthorizationPolicies (All)
- Client.ListAuthzPolicies
- Client.ListAuthzPolicies (All)
- Client.ListBackendAuthenticationConfigs
- Client.ListBackendAuthenticationConfigs (All)
- Client.ListClientTlsPolicies
- Client.ListClientTlsPolicies (All)
- Client.ListGatewaySecurityPolicies
- Client.ListGatewaySecurityPolicies (All)
- Client.ListGatewaySecurityPolicyRules
- Client.ListGatewaySecurityPolicyRules (All)
- Client.ListLocations
- Client.ListLocations (All)
- Client.ListOperations
- Client.ListOperations (All)
- Client.ListServerTlsPolicies
- Client.ListServerTlsPolicies (All)
- Client.ListTlsInspectionPolicies
- Client.ListTlsInspectionPolicies (All)
- Client.ListUrlLists
- Client.ListUrlLists (All)
- Client.SetIamPolicy
- Client.TestIamPermissions
- Client.UpdateAuthorizationPolicy
- Client.UpdateAuthzPolicy
- Client.UpdateBackendAuthenticationConfig
- Client.UpdateClientTlsPolicy
- Client.UpdateGatewaySecurityPolicy
- Client.UpdateGatewaySecurityPolicyRule
- Client.UpdateServerTlsPolicy
- Client.UpdateTlsInspectionPolicy
- Client.UpdateUrlList
- DnsThreatDetectorClient.CancelOperation
- DnsThreatDetectorClient.CreateDnsThreatDetector
- DnsThreatDetectorClient.DeleteDnsThreatDetector
- DnsThreatDetectorClient.DeleteOperation
- DnsThreatDetectorClient.GetDnsThreatDetector
- DnsThreatDetectorClient.GetIamPolicy
- DnsThreatDetectorClient.GetLocation
- DnsThreatDetectorClient.GetOperation
- DnsThreatDetectorClient.ListDnsThreatDetectors
- DnsThreatDetectorClient.ListDnsThreatDetectors (All)
- DnsThreatDetectorClient.ListLocations
- DnsThreatDetectorClient.ListLocations (All)
- DnsThreatDetectorClient.ListOperations
- DnsThreatDetectorClient.ListOperations (All)
- DnsThreatDetectorClient.SetIamPolicy
- DnsThreatDetectorClient.TestIamPermissions
- DnsThreatDetectorClient.UpdateDnsThreatDetector
- FirewallActivationClient.CancelOperation
- FirewallActivationClient.CreateFirewallEndpoint
- FirewallActivationClient.CreateFirewallEndpointAssociation
- FirewallActivationClient.CreateProjectFirewallEndpoint
- FirewallActivationClient.DeleteFirewallEndpoint
- FirewallActivationClient.DeleteFirewallEndpointAssociation
- FirewallActivationClient.DeleteOperation
- FirewallActivationClient.DeleteProjectFirewallEndpoint
- FirewallActivationClient.GetFirewallEndpoint
- FirewallActivationClient.GetFirewallEndpointAssociation
- FirewallActivationClient.GetIamPolicy
- FirewallActivationClient.GetLocation
- FirewallActivationClient.GetOperation
- FirewallActivationClient.GetProjectFirewallEndpoint
- FirewallActivationClient.ListFirewallEndpointAssociations
- FirewallActivationClient.ListFirewallEndpointAssociations (All)
- FirewallActivationClient.ListFirewallEndpoints
- FirewallActivationClient.ListFirewallEndpoints (All)
- FirewallActivationClient.ListLocations
- FirewallActivationClient.ListLocations (All)
- FirewallActivationClient.ListOperations
- FirewallActivationClient.ListOperations (All)
- FirewallActivationClient.ListProjectFirewallEndpoints
- FirewallActivationClient.ListProjectFirewallEndpoints (All)
- FirewallActivationClient.SetIamPolicy
- FirewallActivationClient.TestIamPermissions
- FirewallActivationClient.UpdateFirewallEndpoint
- FirewallActivationClient.UpdateFirewallEndpointAssociation
- FirewallActivationClient.UpdateProjectFirewallEndpoint
- InterceptClient.CancelOperation
- InterceptClient.CreateInterceptDeployment
- InterceptClient.CreateInterceptDeploymentGroup
- InterceptClient.CreateInterceptEndpointGroup
- InterceptClient.CreateInterceptEndpointGroupAssociation
- InterceptClient.DeleteInterceptDeployment
- InterceptClient.DeleteInterceptDeploymentGroup
- InterceptClient.DeleteInterceptEndpointGroup
- InterceptClient.DeleteInterceptEndpointGroupAssociation
- InterceptClient.DeleteOperation
- InterceptClient.GetIamPolicy
- InterceptClient.GetInterceptDeployment
- InterceptClient.GetInterceptDeploymentGroup
- InterceptClient.GetInterceptEndpointGroup
- InterceptClient.GetInterceptEndpointGroupAssociation
- InterceptClient.GetLocation
- InterceptClient.GetOperation
- InterceptClient.ListInterceptDeploymentGroups
- InterceptClient.ListInterceptDeploymentGroups (All)
- InterceptClient.ListInterceptDeployments
- InterceptClient.ListInterceptDeployments (All)
- InterceptClient.ListInterceptEndpointGroupAssociations
- InterceptClient.ListInterceptEndpointGroupAssociations (All)
- InterceptClient.ListInterceptEndpointGroups
- InterceptClient.ListInterceptEndpointGroups (All)
- InterceptClient.ListLocations
- InterceptClient.ListLocations (All)
- InterceptClient.ListOperations
- InterceptClient.ListOperations (All)
- InterceptClient.SetIamPolicy
- InterceptClient.TestIamPermissions
- InterceptClient.UpdateInterceptDeployment
- InterceptClient.UpdateInterceptDeploymentGroup
- InterceptClient.UpdateInterceptEndpointGroup
- InterceptClient.UpdateInterceptEndpointGroupAssociation
- MirroringClient.CancelOperation
- MirroringClient.CreateMirroringDeployment
- MirroringClient.CreateMirroringDeploymentGroup
- MirroringClient.CreateMirroringEndpointGroup
- MirroringClient.CreateMirroringEndpointGroupAssociation
- MirroringClient.DeleteMirroringDeployment
- MirroringClient.DeleteMirroringDeploymentGroup
- MirroringClient.DeleteMirroringEndpointGroup
- MirroringClient.DeleteMirroringEndpointGroupAssociation
- MirroringClient.DeleteOperation
- MirroringClient.GetIamPolicy
- MirroringClient.GetLocation
- MirroringClient.GetMirroringDeployment
- MirroringClient.GetMirroringDeploymentGroup
- MirroringClient.GetMirroringEndpointGroup
- MirroringClient.GetMirroringEndpointGroupAssociation
- MirroringClient.GetOperation
- MirroringClient.ListLocations
- MirroringClient.ListLocations (All)
- MirroringClient.ListMirroringDeploymentGroups
- MirroringClient.ListMirroringDeploymentGroups (All)
- MirroringClient.ListMirroringDeployments
- MirroringClient.ListMirroringDeployments (All)
- MirroringClient.ListMirroringEndpointGroupAssociations
- MirroringClient.ListMirroringEndpointGroupAssociations (All)
- MirroringClient.ListMirroringEndpointGroups
- MirroringClient.ListMirroringEndpointGroups (All)
- MirroringClient.ListOperations
- MirroringClient.ListOperations (All)
- MirroringClient.SetIamPolicy
- MirroringClient.TestIamPermissions
- MirroringClient.UpdateMirroringDeployment
- MirroringClient.UpdateMirroringDeploymentGroup
- MirroringClient.UpdateMirroringEndpointGroup
- MirroringClient.UpdateMirroringEndpointGroupAssociation
- NewAddressGroupClient
- NewAddressGroupRESTClient
- NewClient
- NewDnsThreatDetectorClient
- NewDnsThreatDetectorRESTClient
- NewFirewallActivationClient
- NewFirewallActivationRESTClient
- NewInterceptClient
- NewInterceptRESTClient
- NewMirroringClient
- NewMirroringRESTClient
- NewOrganizationAddressGroupClient
- NewOrganizationAddressGroupRESTClient
- NewOrganizationSecurityProfileGroupClient
- NewOrganizationSecurityProfileGroupRESTClient
- NewRESTClient
- NewSSERealmClient
- NewSSERealmRESTClient
- NewSecurityProfileGroupClient
- NewSecurityProfileGroupRESTClient
- OrganizationAddressGroupClient.AddAddressGroupItems
- OrganizationAddressGroupClient.CancelOperation
- OrganizationAddressGroupClient.CloneAddressGroupItems
- OrganizationAddressGroupClient.CreateAddressGroup
- OrganizationAddressGroupClient.DeleteAddressGroup
- OrganizationAddressGroupClient.DeleteOperation
- OrganizationAddressGroupClient.GetAddressGroup
- OrganizationAddressGroupClient.GetIamPolicy
- OrganizationAddressGroupClient.GetLocation
- OrganizationAddressGroupClient.GetOperation
- OrganizationAddressGroupClient.ListAddressGroupReferences
- OrganizationAddressGroupClient.ListAddressGroupReferences (All)
- OrganizationAddressGroupClient.ListAddressGroups
- OrganizationAddressGroupClient.ListAddressGroups (All)
- OrganizationAddressGroupClient.ListLocations
- OrganizationAddressGroupClient.ListLocations (All)
- OrganizationAddressGroupClient.ListOperations
- OrganizationAddressGroupClient.ListOperations (All)
- OrganizationAddressGroupClient.RemoveAddressGroupItems
- OrganizationAddressGroupClient.SetIamPolicy
- OrganizationAddressGroupClient.TestIamPermissions
- OrganizationAddressGroupClient.UpdateAddressGroup
- OrganizationSecurityProfileGroupClient.CancelOperation
- OrganizationSecurityProfileGroupClient.CreateSecurityProfile
- OrganizationSecurityProfileGroupClient.CreateSecurityProfileGroup
- OrganizationSecurityProfileGroupClient.DeleteOperation
- OrganizationSecurityProfileGroupClient.DeleteSecurityProfile
- OrganizationSecurityProfileGroupClient.DeleteSecurityProfileGroup
- OrganizationSecurityProfileGroupClient.GetIamPolicy
- OrganizationSecurityProfileGroupClient.GetLocation
- OrganizationSecurityProfileGroupClient.GetOperation
- OrganizationSecurityProfileGroupClient.GetSecurityProfile
- OrganizationSecurityProfileGroupClient.GetSecurityProfileGroup
- OrganizationSecurityProfileGroupClient.ListLocations
- OrganizationSecurityProfileGroupClient.ListLocations (All)
- OrganizationSecurityProfileGroupClient.ListOperations
- OrganizationSecurityProfileGroupClient.ListOperations (All)
- OrganizationSecurityProfileGroupClient.ListSecurityProfileGroups
- OrganizationSecurityProfileGroupClient.ListSecurityProfileGroups (All)
- OrganizationSecurityProfileGroupClient.ListSecurityProfiles
- OrganizationSecurityProfileGroupClient.ListSecurityProfiles (All)
- OrganizationSecurityProfileGroupClient.SetIamPolicy
- OrganizationSecurityProfileGroupClient.TestIamPermissions
- OrganizationSecurityProfileGroupClient.UpdateSecurityProfile
- OrganizationSecurityProfileGroupClient.UpdateSecurityProfileGroup
- SSERealmClient.CancelOperation
- SSERealmClient.CreateSACAttachment
- SSERealmClient.CreateSACRealm
- SSERealmClient.DeleteOperation
- SSERealmClient.DeleteSACAttachment
- SSERealmClient.DeleteSACRealm
- SSERealmClient.GetIamPolicy
- SSERealmClient.GetLocation
- SSERealmClient.GetOperation
- SSERealmClient.GetSACAttachment
- SSERealmClient.GetSACRealm
- SSERealmClient.ListLocations
- SSERealmClient.ListLocations (All)
- SSERealmClient.ListOperations
- SSERealmClient.ListOperations (All)
- SSERealmClient.ListSACAttachments
- SSERealmClient.ListSACAttachments (All)
- SSERealmClient.ListSACRealms
- SSERealmClient.ListSACRealms (All)
- SSERealmClient.SetIamPolicy
- SSERealmClient.TestIamPermissions
- SecurityProfileGroupClient.CancelOperation
- SecurityProfileGroupClient.CreateSecurityProfile
- SecurityProfileGroupClient.CreateSecurityProfileGroup
- SecurityProfileGroupClient.DeleteOperation
- SecurityProfileGroupClient.DeleteSecurityProfile
- SecurityProfileGroupClient.DeleteSecurityProfileGroup
- SecurityProfileGroupClient.GetIamPolicy
- SecurityProfileGroupClient.GetLocation
- SecurityProfileGroupClient.GetOperation
- SecurityProfileGroupClient.GetSecurityProfile
- SecurityProfileGroupClient.GetSecurityProfileGroup
- SecurityProfileGroupClient.ListLocations
- SecurityProfileGroupClient.ListLocations (All)
- SecurityProfileGroupClient.ListOperations
- SecurityProfileGroupClient.ListOperations (All)
- SecurityProfileGroupClient.ListSecurityProfileGroups
- SecurityProfileGroupClient.ListSecurityProfileGroups (All)
- SecurityProfileGroupClient.ListSecurityProfiles
- SecurityProfileGroupClient.ListSecurityProfiles (All)
- SecurityProfileGroupClient.SetIamPolicy
- SecurityProfileGroupClient.TestIamPermissions
- SecurityProfileGroupClient.UpdateSecurityProfile
- SecurityProfileGroupClient.UpdateSecurityProfileGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AddAddressGroupItemsOperation ¶
type AddAddressGroupItemsOperation struct {
// contains filtered or unexported fields
}
AddAddressGroupItemsOperation manages a long-running operation from AddAddressGroupItems.
func (*AddAddressGroupItemsOperation) Done ¶
func (op *AddAddressGroupItemsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*AddAddressGroupItemsOperation) Metadata ¶
func (op *AddAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*AddAddressGroupItemsOperation) Name ¶
func (op *AddAddressGroupItemsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*AddAddressGroupItemsOperation) Poll ¶
func (op *AddAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*AddAddressGroupItemsOperation) Wait ¶
func (op *AddAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type AddressGroupCallOptions ¶
type AddressGroupCallOptions struct {
ListAddressGroups []gax.CallOption
GetAddressGroup []gax.CallOption
CreateAddressGroup []gax.CallOption
UpdateAddressGroup []gax.CallOption
AddAddressGroupItems []gax.CallOption
RemoveAddressGroupItems []gax.CallOption
CloneAddressGroupItems []gax.CallOption
DeleteAddressGroup []gax.CallOption
ListAddressGroupReferences []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
AddressGroupCallOptions contains the retry settings for each method of AddressGroupClient.
type AddressGroupClient ¶
type AddressGroupClient struct {
// The call options for this service.
CallOptions *AddressGroupCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
AddressGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.
func NewAddressGroupClient ¶
func NewAddressGroupClient(ctx context.Context, opts ...option.ClientOption) (*AddressGroupClient, error)
NewAddressGroupClient creates a new address group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewAddressGroupRESTClient ¶
func NewAddressGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*AddressGroupClient, error)
NewAddressGroupRESTClient creates a new address group service rest client.
AddressGroup is a resource that manages a collection of IP or Domain Names, it can be used in Firewall Policy to represent allow or deny traffic from all the IP or Domain Names from the Address Group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*AddressGroupClient) AddAddressGroupItems ¶
func (c *AddressGroupClient) AddAddressGroupItems(ctx context.Context, req *networksecuritypb.AddAddressGroupItemsRequest, opts ...gax.CallOption) (*AddAddressGroupItemsOperation, error)
AddAddressGroupItems adds items to an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.AddAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
}
op, err := c.AddAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) AddAddressGroupItemsOperation ¶
func (c *AddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation
AddAddressGroupItemsOperation returns a new AddAddressGroupItemsOperation from a given name. The name must be that of a previously created AddAddressGroupItemsOperation, possibly from a different process.
func (*AddressGroupClient) CancelOperation ¶
func (c *AddressGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*AddressGroupClient) CloneAddressGroupItems ¶
func (c *AddressGroupClient) CloneAddressGroupItems(ctx context.Context, req *networksecuritypb.CloneAddressGroupItemsRequest, opts ...gax.CallOption) (*CloneAddressGroupItemsOperation, error)
CloneAddressGroupItems clones items from one address group to another.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CloneAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CloneAddressGroupItemsRequest.
}
op, err := c.CloneAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) CloneAddressGroupItemsOperation ¶
func (c *AddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation
CloneAddressGroupItemsOperation returns a new CloneAddressGroupItemsOperation from a given name. The name must be that of a previously created CloneAddressGroupItemsOperation, possibly from a different process.
func (*AddressGroupClient) Close ¶
func (c *AddressGroupClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*AddressGroupClient) Connection
deprecated
func (c *AddressGroupClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*AddressGroupClient) CreateAddressGroup ¶
func (c *AddressGroupClient) CreateAddressGroup(ctx context.Context, req *networksecuritypb.CreateAddressGroupRequest, opts ...gax.CallOption) (*CreateAddressGroupOperation, error)
CreateAddressGroup creates a new address group in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAddressGroupRequest.
}
op, err := c.CreateAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) CreateAddressGroupOperation ¶
func (c *AddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation
CreateAddressGroupOperation returns a new CreateAddressGroupOperation from a given name. The name must be that of a previously created CreateAddressGroupOperation, possibly from a different process.
func (*AddressGroupClient) DeleteAddressGroup ¶
func (c *AddressGroupClient) DeleteAddressGroup(ctx context.Context, req *networksecuritypb.DeleteAddressGroupRequest, opts ...gax.CallOption) (*DeleteAddressGroupOperation, error)
DeleteAddressGroup deletes a single address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAddressGroupRequest.
}
op, err := c.DeleteAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*AddressGroupClient) DeleteAddressGroupOperation ¶
func (c *AddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation
DeleteAddressGroupOperation returns a new DeleteAddressGroupOperation from a given name. The name must be that of a previously created DeleteAddressGroupOperation, possibly from a different process.
func (*AddressGroupClient) DeleteOperation ¶
func (c *AddressGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*AddressGroupClient) GetAddressGroup ¶
func (c *AddressGroupClient) GetAddressGroup(ctx context.Context, req *networksecuritypb.GetAddressGroupRequest, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
GetAddressGroup gets details of a single address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAddressGroupRequest.
}
resp, err := c.GetAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) GetIamPolicy ¶
func (c *AddressGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) GetLocation ¶
func (c *AddressGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) GetOperation ¶
func (c *AddressGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) ListAddressGroupReferences ¶
func (c *AddressGroupClient) ListAddressGroupReferences(ctx context.Context, req *networksecuritypb.ListAddressGroupReferencesRequest, opts ...gax.CallOption) *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator
ListAddressGroupReferences lists references of an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupReferencesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
}
it := c.ListAddressGroupReferences(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAddressGroupReferencesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupReferencesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
}
for resp, err := range c.ListAddressGroupReferences(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*AddressGroupClient) ListAddressGroups ¶
func (c *AddressGroupClient) ListAddressGroups(ctx context.Context, req *networksecuritypb.ListAddressGroupsRequest, opts ...gax.CallOption) *AddressGroupIterator
ListAddressGroups lists address groups in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
}
it := c.ListAddressGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAddressGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
}
for resp, err := range c.ListAddressGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*AddressGroupClient) ListLocations ¶
func (c *AddressGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*AddressGroupClient) ListOperations ¶
func (c *AddressGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*AddressGroupClient) RemoveAddressGroupItems ¶
func (c *AddressGroupClient) RemoveAddressGroupItems(ctx context.Context, req *networksecuritypb.RemoveAddressGroupItemsRequest, opts ...gax.CallOption) (*RemoveAddressGroupItemsOperation, error)
RemoveAddressGroupItems removes items from an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.RemoveAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#RemoveAddressGroupItemsRequest.
}
op, err := c.RemoveAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) RemoveAddressGroupItemsOperation ¶
func (c *AddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation
RemoveAddressGroupItemsOperation returns a new RemoveAddressGroupItemsOperation from a given name. The name must be that of a previously created RemoveAddressGroupItemsOperation, possibly from a different process.
func (*AddressGroupClient) SetIamPolicy ¶
func (c *AddressGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) TestIamPermissions ¶
func (c *AddressGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) UpdateAddressGroup ¶
func (c *AddressGroupClient) UpdateAddressGroup(ctx context.Context, req *networksecuritypb.UpdateAddressGroupRequest, opts ...gax.CallOption) (*UpdateAddressGroupOperation, error)
UpdateAddressGroup updates the parameters of a single address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAddressGroupRequest.
}
op, err := c.UpdateAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*AddressGroupClient) UpdateAddressGroupOperation ¶
func (c *AddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation
UpdateAddressGroupOperation returns a new UpdateAddressGroupOperation from a given name. The name must be that of a previously created UpdateAddressGroupOperation, possibly from a different process.
type AddressGroupIterator ¶
type AddressGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.AddressGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
AddressGroupIterator manages a stream of *networksecuritypb.AddressGroup.
func (*AddressGroupIterator) All ¶
func (it *AddressGroupIterator) All() iter.Seq2[*networksecuritypb.AddressGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AddressGroupIterator) Next ¶
func (it *AddressGroupIterator) Next() (*networksecuritypb.AddressGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AddressGroupIterator) PageInfo ¶
func (it *AddressGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AuthorizationPolicyIterator ¶
type AuthorizationPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.AuthorizationPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
AuthorizationPolicyIterator manages a stream of *networksecuritypb.AuthorizationPolicy.
func (*AuthorizationPolicyIterator) All ¶
func (it *AuthorizationPolicyIterator) All() iter.Seq2[*networksecuritypb.AuthorizationPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AuthorizationPolicyIterator) Next ¶
func (it *AuthorizationPolicyIterator) Next() (*networksecuritypb.AuthorizationPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AuthorizationPolicyIterator) PageInfo ¶
func (it *AuthorizationPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AuthzPolicyIterator ¶
type AuthzPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.AuthzPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
AuthzPolicyIterator manages a stream of *networksecuritypb.AuthzPolicy.
func (*AuthzPolicyIterator) All ¶
func (it *AuthzPolicyIterator) All() iter.Seq2[*networksecuritypb.AuthzPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AuthzPolicyIterator) Next ¶
func (it *AuthzPolicyIterator) Next() (*networksecuritypb.AuthzPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AuthzPolicyIterator) PageInfo ¶
func (it *AuthzPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BackendAuthenticationConfigIterator ¶
type BackendAuthenticationConfigIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.BackendAuthenticationConfig, nextPageToken string, err error)
// contains filtered or unexported fields
}
BackendAuthenticationConfigIterator manages a stream of *networksecuritypb.BackendAuthenticationConfig.
func (*BackendAuthenticationConfigIterator) All ¶
func (it *BackendAuthenticationConfigIterator) All() iter.Seq2[*networksecuritypb.BackendAuthenticationConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*BackendAuthenticationConfigIterator) Next ¶
func (it *BackendAuthenticationConfigIterator) Next() (*networksecuritypb.BackendAuthenticationConfig, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*BackendAuthenticationConfigIterator) PageInfo ¶
func (it *BackendAuthenticationConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CallOptions ¶
type CallOptions struct {
ListAuthorizationPolicies []gax.CallOption
GetAuthorizationPolicy []gax.CallOption
CreateAuthorizationPolicy []gax.CallOption
UpdateAuthorizationPolicy []gax.CallOption
DeleteAuthorizationPolicy []gax.CallOption
ListBackendAuthenticationConfigs []gax.CallOption
GetBackendAuthenticationConfig []gax.CallOption
CreateBackendAuthenticationConfig []gax.CallOption
UpdateBackendAuthenticationConfig []gax.CallOption
DeleteBackendAuthenticationConfig []gax.CallOption
ListServerTlsPolicies []gax.CallOption
GetServerTlsPolicy []gax.CallOption
CreateServerTlsPolicy []gax.CallOption
UpdateServerTlsPolicy []gax.CallOption
DeleteServerTlsPolicy []gax.CallOption
ListClientTlsPolicies []gax.CallOption
GetClientTlsPolicy []gax.CallOption
CreateClientTlsPolicy []gax.CallOption
UpdateClientTlsPolicy []gax.CallOption
DeleteClientTlsPolicy []gax.CallOption
ListGatewaySecurityPolicies []gax.CallOption
GetGatewaySecurityPolicy []gax.CallOption
CreateGatewaySecurityPolicy []gax.CallOption
UpdateGatewaySecurityPolicy []gax.CallOption
DeleteGatewaySecurityPolicy []gax.CallOption
ListGatewaySecurityPolicyRules []gax.CallOption
GetGatewaySecurityPolicyRule []gax.CallOption
CreateGatewaySecurityPolicyRule []gax.CallOption
UpdateGatewaySecurityPolicyRule []gax.CallOption
DeleteGatewaySecurityPolicyRule []gax.CallOption
ListUrlLists []gax.CallOption
GetUrlList []gax.CallOption
CreateUrlList []gax.CallOption
UpdateUrlList []gax.CallOption
DeleteUrlList []gax.CallOption
ListTlsInspectionPolicies []gax.CallOption
GetTlsInspectionPolicy []gax.CallOption
CreateTlsInspectionPolicy []gax.CallOption
UpdateTlsInspectionPolicy []gax.CallOption
DeleteTlsInspectionPolicy []gax.CallOption
ListAuthzPolicies []gax.CallOption
GetAuthzPolicy []gax.CallOption
CreateAuthzPolicy []gax.CallOption
UpdateAuthzPolicy []gax.CallOption
DeleteAuthzPolicy []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
CallOptions contains the retry settings for each method of Client.
type Client ¶
type Client struct {
// The call options for this service.
CallOptions *CallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
Client is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.
func NewClient ¶
NewClient creates a new network security client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewRESTClient ¶
NewRESTClient creates a new network security rest client.
Network Security API provides resources to configure authentication and authorization policies. Refer to per API resource documentation for more information.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*Client) CancelOperation ¶
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) Close ¶
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*Client) Connection
deprecated
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*Client) CreateAuthorizationPolicy ¶
func (c *Client) CreateAuthorizationPolicy(ctx context.Context, req *networksecuritypb.CreateAuthorizationPolicyRequest, opts ...gax.CallOption) (*CreateAuthorizationPolicyOperation, error)
CreateAuthorizationPolicy creates a new AuthorizationPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateAuthorizationPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAuthorizationPolicyRequest.
}
op, err := c.CreateAuthorizationPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateAuthorizationPolicyOperation ¶
func (c *Client) CreateAuthorizationPolicyOperation(name string) *CreateAuthorizationPolicyOperation
CreateAuthorizationPolicyOperation returns a new CreateAuthorizationPolicyOperation from a given name. The name must be that of a previously created CreateAuthorizationPolicyOperation, possibly from a different process.
func (*Client) CreateAuthzPolicy ¶
func (c *Client) CreateAuthzPolicy(ctx context.Context, req *networksecuritypb.CreateAuthzPolicyRequest, opts ...gax.CallOption) (*CreateAuthzPolicyOperation, error)
CreateAuthzPolicy creates a new AuthzPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateAuthzPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAuthzPolicyRequest.
}
op, err := c.CreateAuthzPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateAuthzPolicyOperation ¶
func (c *Client) CreateAuthzPolicyOperation(name string) *CreateAuthzPolicyOperation
CreateAuthzPolicyOperation returns a new CreateAuthzPolicyOperation from a given name. The name must be that of a previously created CreateAuthzPolicyOperation, possibly from a different process.
func (*Client) CreateBackendAuthenticationConfig ¶
func (c *Client) CreateBackendAuthenticationConfig(ctx context.Context, req *networksecuritypb.CreateBackendAuthenticationConfigRequest, opts ...gax.CallOption) (*CreateBackendAuthenticationConfigOperation, error)
CreateBackendAuthenticationConfig creates a new BackendAuthenticationConfig in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateBackendAuthenticationConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateBackendAuthenticationConfigRequest.
}
op, err := c.CreateBackendAuthenticationConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateBackendAuthenticationConfigOperation ¶
func (c *Client) CreateBackendAuthenticationConfigOperation(name string) *CreateBackendAuthenticationConfigOperation
CreateBackendAuthenticationConfigOperation returns a new CreateBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created CreateBackendAuthenticationConfigOperation, possibly from a different process.
func (*Client) CreateClientTlsPolicy ¶
func (c *Client) CreateClientTlsPolicy(ctx context.Context, req *networksecuritypb.CreateClientTlsPolicyRequest, opts ...gax.CallOption) (*CreateClientTlsPolicyOperation, error)
CreateClientTlsPolicy creates a new ClientTlsPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateClientTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateClientTlsPolicyRequest.
}
op, err := c.CreateClientTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateClientTlsPolicyOperation ¶
func (c *Client) CreateClientTlsPolicyOperation(name string) *CreateClientTlsPolicyOperation
CreateClientTlsPolicyOperation returns a new CreateClientTlsPolicyOperation from a given name. The name must be that of a previously created CreateClientTlsPolicyOperation, possibly from a different process.
func (*Client) CreateGatewaySecurityPolicy ¶
func (c *Client) CreateGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.CreateGatewaySecurityPolicyRequest, opts ...gax.CallOption) (*CreateGatewaySecurityPolicyOperation, error)
CreateGatewaySecurityPolicy creates a new GatewaySecurityPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateGatewaySecurityPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateGatewaySecurityPolicyRequest.
}
op, err := c.CreateGatewaySecurityPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateGatewaySecurityPolicyOperation ¶
func (c *Client) CreateGatewaySecurityPolicyOperation(name string) *CreateGatewaySecurityPolicyOperation
CreateGatewaySecurityPolicyOperation returns a new CreateGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created CreateGatewaySecurityPolicyOperation, possibly from a different process.
func (*Client) CreateGatewaySecurityPolicyRule ¶
func (c *Client) CreateGatewaySecurityPolicyRule(ctx context.Context, req *networksecuritypb.CreateGatewaySecurityPolicyRuleRequest, opts ...gax.CallOption) (*CreateGatewaySecurityPolicyRuleOperation, error)
CreateGatewaySecurityPolicyRule creates a new GatewaySecurityPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateGatewaySecurityPolicyRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateGatewaySecurityPolicyRuleRequest.
}
op, err := c.CreateGatewaySecurityPolicyRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateGatewaySecurityPolicyRuleOperation ¶
func (c *Client) CreateGatewaySecurityPolicyRuleOperation(name string) *CreateGatewaySecurityPolicyRuleOperation
CreateGatewaySecurityPolicyRuleOperation returns a new CreateGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created CreateGatewaySecurityPolicyRuleOperation, possibly from a different process.
func (*Client) CreateServerTlsPolicy ¶
func (c *Client) CreateServerTlsPolicy(ctx context.Context, req *networksecuritypb.CreateServerTlsPolicyRequest, opts ...gax.CallOption) (*CreateServerTlsPolicyOperation, error)
CreateServerTlsPolicy creates a new ServerTlsPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateServerTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateServerTlsPolicyRequest.
}
op, err := c.CreateServerTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateServerTlsPolicyOperation ¶
func (c *Client) CreateServerTlsPolicyOperation(name string) *CreateServerTlsPolicyOperation
CreateServerTlsPolicyOperation returns a new CreateServerTlsPolicyOperation from a given name. The name must be that of a previously created CreateServerTlsPolicyOperation, possibly from a different process.
func (*Client) CreateTlsInspectionPolicy ¶
func (c *Client) CreateTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.CreateTlsInspectionPolicyRequest, opts ...gax.CallOption) (*CreateTlsInspectionPolicyOperation, error)
CreateTlsInspectionPolicy creates a new TlsInspectionPolicy in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateTlsInspectionPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateTlsInspectionPolicyRequest.
}
op, err := c.CreateTlsInspectionPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateTlsInspectionPolicyOperation ¶
func (c *Client) CreateTlsInspectionPolicyOperation(name string) *CreateTlsInspectionPolicyOperation
CreateTlsInspectionPolicyOperation returns a new CreateTlsInspectionPolicyOperation from a given name. The name must be that of a previously created CreateTlsInspectionPolicyOperation, possibly from a different process.
func (*Client) CreateUrlList ¶
func (c *Client) CreateUrlList(ctx context.Context, req *networksecuritypb.CreateUrlListRequest, opts ...gax.CallOption) (*CreateUrlListOperation, error)
CreateUrlList creates a new UrlList in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateUrlListRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateUrlListRequest.
}
op, err := c.CreateUrlList(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) CreateUrlListOperation ¶
func (c *Client) CreateUrlListOperation(name string) *CreateUrlListOperation
CreateUrlListOperation returns a new CreateUrlListOperation from a given name. The name must be that of a previously created CreateUrlListOperation, possibly from a different process.
func (*Client) DeleteAuthorizationPolicy ¶
func (c *Client) DeleteAuthorizationPolicy(ctx context.Context, req *networksecuritypb.DeleteAuthorizationPolicyRequest, opts ...gax.CallOption) (*DeleteAuthorizationPolicyOperation, error)
DeleteAuthorizationPolicy deletes a single AuthorizationPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteAuthorizationPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAuthorizationPolicyRequest.
}
op, err := c.DeleteAuthorizationPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteAuthorizationPolicyOperation ¶
func (c *Client) DeleteAuthorizationPolicyOperation(name string) *DeleteAuthorizationPolicyOperation
DeleteAuthorizationPolicyOperation returns a new DeleteAuthorizationPolicyOperation from a given name. The name must be that of a previously created DeleteAuthorizationPolicyOperation, possibly from a different process.
func (*Client) DeleteAuthzPolicy ¶
func (c *Client) DeleteAuthzPolicy(ctx context.Context, req *networksecuritypb.DeleteAuthzPolicyRequest, opts ...gax.CallOption) (*DeleteAuthzPolicyOperation, error)
DeleteAuthzPolicy deletes a single AuthzPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteAuthzPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAuthzPolicyRequest.
}
op, err := c.DeleteAuthzPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteAuthzPolicyOperation ¶
func (c *Client) DeleteAuthzPolicyOperation(name string) *DeleteAuthzPolicyOperation
DeleteAuthzPolicyOperation returns a new DeleteAuthzPolicyOperation from a given name. The name must be that of a previously created DeleteAuthzPolicyOperation, possibly from a different process.
func (*Client) DeleteBackendAuthenticationConfig ¶
func (c *Client) DeleteBackendAuthenticationConfig(ctx context.Context, req *networksecuritypb.DeleteBackendAuthenticationConfigRequest, opts ...gax.CallOption) (*DeleteBackendAuthenticationConfigOperation, error)
DeleteBackendAuthenticationConfig deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteBackendAuthenticationConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteBackendAuthenticationConfigRequest.
}
op, err := c.DeleteBackendAuthenticationConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteBackendAuthenticationConfigOperation ¶
func (c *Client) DeleteBackendAuthenticationConfigOperation(name string) *DeleteBackendAuthenticationConfigOperation
DeleteBackendAuthenticationConfigOperation returns a new DeleteBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created DeleteBackendAuthenticationConfigOperation, possibly from a different process.
func (*Client) DeleteClientTlsPolicy ¶
func (c *Client) DeleteClientTlsPolicy(ctx context.Context, req *networksecuritypb.DeleteClientTlsPolicyRequest, opts ...gax.CallOption) (*DeleteClientTlsPolicyOperation, error)
DeleteClientTlsPolicy deletes a single ClientTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteClientTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteClientTlsPolicyRequest.
}
op, err := c.DeleteClientTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteClientTlsPolicyOperation ¶
func (c *Client) DeleteClientTlsPolicyOperation(name string) *DeleteClientTlsPolicyOperation
DeleteClientTlsPolicyOperation returns a new DeleteClientTlsPolicyOperation from a given name. The name must be that of a previously created DeleteClientTlsPolicyOperation, possibly from a different process.
func (*Client) DeleteGatewaySecurityPolicy ¶
func (c *Client) DeleteGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.DeleteGatewaySecurityPolicyRequest, opts ...gax.CallOption) (*DeleteGatewaySecurityPolicyOperation, error)
DeleteGatewaySecurityPolicy deletes a single GatewaySecurityPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteGatewaySecurityPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteGatewaySecurityPolicyRequest.
}
op, err := c.DeleteGatewaySecurityPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteGatewaySecurityPolicyOperation ¶
func (c *Client) DeleteGatewaySecurityPolicyOperation(name string) *DeleteGatewaySecurityPolicyOperation
DeleteGatewaySecurityPolicyOperation returns a new DeleteGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created DeleteGatewaySecurityPolicyOperation, possibly from a different process.
func (*Client) DeleteGatewaySecurityPolicyRule ¶
func (c *Client) DeleteGatewaySecurityPolicyRule(ctx context.Context, req *networksecuritypb.DeleteGatewaySecurityPolicyRuleRequest, opts ...gax.CallOption) (*DeleteGatewaySecurityPolicyRuleOperation, error)
DeleteGatewaySecurityPolicyRule deletes a single GatewaySecurityPolicyRule.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteGatewaySecurityPolicyRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteGatewaySecurityPolicyRuleRequest.
}
op, err := c.DeleteGatewaySecurityPolicyRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteGatewaySecurityPolicyRuleOperation ¶
func (c *Client) DeleteGatewaySecurityPolicyRuleOperation(name string) *DeleteGatewaySecurityPolicyRuleOperation
DeleteGatewaySecurityPolicyRuleOperation returns a new DeleteGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created DeleteGatewaySecurityPolicyRuleOperation, possibly from a different process.
func (*Client) DeleteOperation ¶
func (c *Client) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteServerTlsPolicy ¶
func (c *Client) DeleteServerTlsPolicy(ctx context.Context, req *networksecuritypb.DeleteServerTlsPolicyRequest, opts ...gax.CallOption) (*DeleteServerTlsPolicyOperation, error)
DeleteServerTlsPolicy deletes a single ServerTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteServerTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteServerTlsPolicyRequest.
}
op, err := c.DeleteServerTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteServerTlsPolicyOperation ¶
func (c *Client) DeleteServerTlsPolicyOperation(name string) *DeleteServerTlsPolicyOperation
DeleteServerTlsPolicyOperation returns a new DeleteServerTlsPolicyOperation from a given name. The name must be that of a previously created DeleteServerTlsPolicyOperation, possibly from a different process.
func (*Client) DeleteTlsInspectionPolicy ¶
func (c *Client) DeleteTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.DeleteTlsInspectionPolicyRequest, opts ...gax.CallOption) (*DeleteTlsInspectionPolicyOperation, error)
DeleteTlsInspectionPolicy deletes a single TlsInspectionPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteTlsInspectionPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteTlsInspectionPolicyRequest.
}
op, err := c.DeleteTlsInspectionPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteTlsInspectionPolicyOperation ¶
func (c *Client) DeleteTlsInspectionPolicyOperation(name string) *DeleteTlsInspectionPolicyOperation
DeleteTlsInspectionPolicyOperation returns a new DeleteTlsInspectionPolicyOperation from a given name. The name must be that of a previously created DeleteTlsInspectionPolicyOperation, possibly from a different process.
func (*Client) DeleteUrlList ¶
func (c *Client) DeleteUrlList(ctx context.Context, req *networksecuritypb.DeleteUrlListRequest, opts ...gax.CallOption) (*DeleteUrlListOperation, error)
DeleteUrlList deletes a single UrlList.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteUrlListRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteUrlListRequest.
}
op, err := c.DeleteUrlList(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*Client) DeleteUrlListOperation ¶
func (c *Client) DeleteUrlListOperation(name string) *DeleteUrlListOperation
DeleteUrlListOperation returns a new DeleteUrlListOperation from a given name. The name must be that of a previously created DeleteUrlListOperation, possibly from a different process.
func (*Client) GetAuthorizationPolicy ¶
func (c *Client) GetAuthorizationPolicy(ctx context.Context, req *networksecuritypb.GetAuthorizationPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
GetAuthorizationPolicy gets details of a single AuthorizationPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetAuthorizationPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAuthorizationPolicyRequest.
}
resp, err := c.GetAuthorizationPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetAuthzPolicy ¶
func (c *Client) GetAuthzPolicy(ctx context.Context, req *networksecuritypb.GetAuthzPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
GetAuthzPolicy gets details of a single AuthzPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetAuthzPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAuthzPolicyRequest.
}
resp, err := c.GetAuthzPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetBackendAuthenticationConfig ¶
func (c *Client) GetBackendAuthenticationConfig(ctx context.Context, req *networksecuritypb.GetBackendAuthenticationConfigRequest, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
GetBackendAuthenticationConfig gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetBackendAuthenticationConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetBackendAuthenticationConfigRequest.
}
resp, err := c.GetBackendAuthenticationConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetClientTlsPolicy ¶
func (c *Client) GetClientTlsPolicy(ctx context.Context, req *networksecuritypb.GetClientTlsPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
GetClientTlsPolicy gets details of a single ClientTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetClientTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetClientTlsPolicyRequest.
}
resp, err := c.GetClientTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetGatewaySecurityPolicy ¶
func (c *Client) GetGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.GetGatewaySecurityPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
GetGatewaySecurityPolicy gets details of a single GatewaySecurityPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetGatewaySecurityPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetGatewaySecurityPolicyRequest.
}
resp, err := c.GetGatewaySecurityPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetGatewaySecurityPolicyRule ¶
func (c *Client) GetGatewaySecurityPolicyRule(ctx context.Context, req *networksecuritypb.GetGatewaySecurityPolicyRuleRequest, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
GetGatewaySecurityPolicyRule gets details of a single GatewaySecurityPolicyRule.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetGatewaySecurityPolicyRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetGatewaySecurityPolicyRuleRequest.
}
resp, err := c.GetGatewaySecurityPolicyRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetIamPolicy ¶
func (c *Client) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetLocation ¶
func (c *Client) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetOperation ¶
func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetServerTlsPolicy ¶
func (c *Client) GetServerTlsPolicy(ctx context.Context, req *networksecuritypb.GetServerTlsPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
GetServerTlsPolicy gets details of a single ServerTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetServerTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetServerTlsPolicyRequest.
}
resp, err := c.GetServerTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetTlsInspectionPolicy ¶
func (c *Client) GetTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.GetTlsInspectionPolicyRequest, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
GetTlsInspectionPolicy gets details of a single TlsInspectionPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetTlsInspectionPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetTlsInspectionPolicyRequest.
}
resp, err := c.GetTlsInspectionPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) GetUrlList ¶
func (c *Client) GetUrlList(ctx context.Context, req *networksecuritypb.GetUrlListRequest, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
GetUrlList gets details of a single UrlList.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetUrlListRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetUrlListRequest.
}
resp, err := c.GetUrlList(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) ListAuthorizationPolicies ¶
func (c *Client) ListAuthorizationPolicies(ctx context.Context, req *networksecuritypb.ListAuthorizationPoliciesRequest, opts ...gax.CallOption) *AuthorizationPolicyIterator
ListAuthorizationPolicies lists AuthorizationPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAuthorizationPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthorizationPoliciesRequest.
}
it := c.ListAuthorizationPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAuthorizationPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAuthorizationPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthorizationPoliciesRequest.
}
for resp, err := range c.ListAuthorizationPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListAuthzPolicies ¶
func (c *Client) ListAuthzPolicies(ctx context.Context, req *networksecuritypb.ListAuthzPoliciesRequest, opts ...gax.CallOption) *AuthzPolicyIterator
ListAuthzPolicies lists AuthzPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAuthzPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthzPoliciesRequest.
}
it := c.ListAuthzPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAuthzPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAuthzPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAuthzPoliciesRequest.
}
for resp, err := range c.ListAuthzPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListBackendAuthenticationConfigs ¶
func (c *Client) ListBackendAuthenticationConfigs(ctx context.Context, req *networksecuritypb.ListBackendAuthenticationConfigsRequest, opts ...gax.CallOption) *BackendAuthenticationConfigIterator
ListBackendAuthenticationConfigs lists BackendAuthenticationConfigs in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListBackendAuthenticationConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListBackendAuthenticationConfigsRequest.
}
it := c.ListBackendAuthenticationConfigs(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListBackendAuthenticationConfigsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListBackendAuthenticationConfigsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListBackendAuthenticationConfigsRequest.
}
for resp, err := range c.ListBackendAuthenticationConfigs(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListClientTlsPolicies ¶
func (c *Client) ListClientTlsPolicies(ctx context.Context, req *networksecuritypb.ListClientTlsPoliciesRequest, opts ...gax.CallOption) *ClientTlsPolicyIterator
ListClientTlsPolicies lists ClientTlsPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListClientTlsPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListClientTlsPoliciesRequest.
}
it := c.ListClientTlsPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListClientTlsPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListClientTlsPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListClientTlsPoliciesRequest.
}
for resp, err := range c.ListClientTlsPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListGatewaySecurityPolicies ¶
func (c *Client) ListGatewaySecurityPolicies(ctx context.Context, req *networksecuritypb.ListGatewaySecurityPoliciesRequest, opts ...gax.CallOption) *GatewaySecurityPolicyIterator
ListGatewaySecurityPolicies lists GatewaySecurityPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListGatewaySecurityPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPoliciesRequest.
}
it := c.ListGatewaySecurityPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListGatewaySecurityPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListGatewaySecurityPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPoliciesRequest.
}
for resp, err := range c.ListGatewaySecurityPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListGatewaySecurityPolicyRules ¶
func (c *Client) ListGatewaySecurityPolicyRules(ctx context.Context, req *networksecuritypb.ListGatewaySecurityPolicyRulesRequest, opts ...gax.CallOption) *GatewaySecurityPolicyRuleIterator
ListGatewaySecurityPolicyRules lists GatewaySecurityPolicyRules in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListGatewaySecurityPolicyRulesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPolicyRulesRequest.
}
it := c.ListGatewaySecurityPolicyRules(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListGatewaySecurityPolicyRulesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListGatewaySecurityPolicyRulesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListGatewaySecurityPolicyRulesRequest.
}
for resp, err := range c.ListGatewaySecurityPolicyRules(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListLocations ¶
func (c *Client) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListOperations ¶
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListServerTlsPolicies ¶
func (c *Client) ListServerTlsPolicies(ctx context.Context, req *networksecuritypb.ListServerTlsPoliciesRequest, opts ...gax.CallOption) *ServerTlsPolicyIterator
ListServerTlsPolicies lists ServerTlsPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListServerTlsPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListServerTlsPoliciesRequest.
}
it := c.ListServerTlsPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListServerTlsPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListServerTlsPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListServerTlsPoliciesRequest.
}
for resp, err := range c.ListServerTlsPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListTlsInspectionPolicies ¶
func (c *Client) ListTlsInspectionPolicies(ctx context.Context, req *networksecuritypb.ListTlsInspectionPoliciesRequest, opts ...gax.CallOption) *TlsInspectionPolicyIterator
ListTlsInspectionPolicies lists TlsInspectionPolicies in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListTlsInspectionPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListTlsInspectionPoliciesRequest.
}
it := c.ListTlsInspectionPolicies(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListTlsInspectionPoliciesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListTlsInspectionPoliciesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListTlsInspectionPoliciesRequest.
}
for resp, err := range c.ListTlsInspectionPolicies(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) ListUrlLists ¶
func (c *Client) ListUrlLists(ctx context.Context, req *networksecuritypb.ListUrlListsRequest, opts ...gax.CallOption) *UrlListIterator
ListUrlLists lists UrlLists in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListUrlListsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListUrlListsRequest.
}
it := c.ListUrlLists(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListUrlListsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListUrlListsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListUrlListsRequest.
}
for resp, err := range c.ListUrlLists(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*Client) SetIamPolicy ¶
func (c *Client) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) TestIamPermissions ¶
func (c *Client) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateAuthorizationPolicy ¶
func (c *Client) UpdateAuthorizationPolicy(ctx context.Context, req *networksecuritypb.UpdateAuthorizationPolicyRequest, opts ...gax.CallOption) (*UpdateAuthorizationPolicyOperation, error)
UpdateAuthorizationPolicy updates the parameters of a single AuthorizationPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateAuthorizationPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAuthorizationPolicyRequest.
}
op, err := c.UpdateAuthorizationPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateAuthorizationPolicyOperation ¶
func (c *Client) UpdateAuthorizationPolicyOperation(name string) *UpdateAuthorizationPolicyOperation
UpdateAuthorizationPolicyOperation returns a new UpdateAuthorizationPolicyOperation from a given name. The name must be that of a previously created UpdateAuthorizationPolicyOperation, possibly from a different process.
func (*Client) UpdateAuthzPolicy ¶
func (c *Client) UpdateAuthzPolicy(ctx context.Context, req *networksecuritypb.UpdateAuthzPolicyRequest, opts ...gax.CallOption) (*UpdateAuthzPolicyOperation, error)
UpdateAuthzPolicy updates the parameters of a single AuthzPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateAuthzPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAuthzPolicyRequest.
}
op, err := c.UpdateAuthzPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateAuthzPolicyOperation ¶
func (c *Client) UpdateAuthzPolicyOperation(name string) *UpdateAuthzPolicyOperation
UpdateAuthzPolicyOperation returns a new UpdateAuthzPolicyOperation from a given name. The name must be that of a previously created UpdateAuthzPolicyOperation, possibly from a different process.
func (*Client) UpdateBackendAuthenticationConfig ¶
func (c *Client) UpdateBackendAuthenticationConfig(ctx context.Context, req *networksecuritypb.UpdateBackendAuthenticationConfigRequest, opts ...gax.CallOption) (*UpdateBackendAuthenticationConfigOperation, error)
UpdateBackendAuthenticationConfig updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateBackendAuthenticationConfigRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateBackendAuthenticationConfigRequest.
}
op, err := c.UpdateBackendAuthenticationConfig(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateBackendAuthenticationConfigOperation ¶
func (c *Client) UpdateBackendAuthenticationConfigOperation(name string) *UpdateBackendAuthenticationConfigOperation
UpdateBackendAuthenticationConfigOperation returns a new UpdateBackendAuthenticationConfigOperation from a given name. The name must be that of a previously created UpdateBackendAuthenticationConfigOperation, possibly from a different process.
func (*Client) UpdateClientTlsPolicy ¶
func (c *Client) UpdateClientTlsPolicy(ctx context.Context, req *networksecuritypb.UpdateClientTlsPolicyRequest, opts ...gax.CallOption) (*UpdateClientTlsPolicyOperation, error)
UpdateClientTlsPolicy updates the parameters of a single ClientTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateClientTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateClientTlsPolicyRequest.
}
op, err := c.UpdateClientTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateClientTlsPolicyOperation ¶
func (c *Client) UpdateClientTlsPolicyOperation(name string) *UpdateClientTlsPolicyOperation
UpdateClientTlsPolicyOperation returns a new UpdateClientTlsPolicyOperation from a given name. The name must be that of a previously created UpdateClientTlsPolicyOperation, possibly from a different process.
func (*Client) UpdateGatewaySecurityPolicy ¶
func (c *Client) UpdateGatewaySecurityPolicy(ctx context.Context, req *networksecuritypb.UpdateGatewaySecurityPolicyRequest, opts ...gax.CallOption) (*UpdateGatewaySecurityPolicyOperation, error)
UpdateGatewaySecurityPolicy updates the parameters of a single GatewaySecurityPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateGatewaySecurityPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateGatewaySecurityPolicyRequest.
}
op, err := c.UpdateGatewaySecurityPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateGatewaySecurityPolicyOperation ¶
func (c *Client) UpdateGatewaySecurityPolicyOperation(name string) *UpdateGatewaySecurityPolicyOperation
UpdateGatewaySecurityPolicyOperation returns a new UpdateGatewaySecurityPolicyOperation from a given name. The name must be that of a previously created UpdateGatewaySecurityPolicyOperation, possibly from a different process.
func (*Client) UpdateGatewaySecurityPolicyRule ¶
func (c *Client) UpdateGatewaySecurityPolicyRule(ctx context.Context, req *networksecuritypb.UpdateGatewaySecurityPolicyRuleRequest, opts ...gax.CallOption) (*UpdateGatewaySecurityPolicyRuleOperation, error)
UpdateGatewaySecurityPolicyRule updates the parameters of a single GatewaySecurityPolicyRule.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateGatewaySecurityPolicyRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateGatewaySecurityPolicyRuleRequest.
}
op, err := c.UpdateGatewaySecurityPolicyRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateGatewaySecurityPolicyRuleOperation ¶
func (c *Client) UpdateGatewaySecurityPolicyRuleOperation(name string) *UpdateGatewaySecurityPolicyRuleOperation
UpdateGatewaySecurityPolicyRuleOperation returns a new UpdateGatewaySecurityPolicyRuleOperation from a given name. The name must be that of a previously created UpdateGatewaySecurityPolicyRuleOperation, possibly from a different process.
func (*Client) UpdateServerTlsPolicy ¶
func (c *Client) UpdateServerTlsPolicy(ctx context.Context, req *networksecuritypb.UpdateServerTlsPolicyRequest, opts ...gax.CallOption) (*UpdateServerTlsPolicyOperation, error)
UpdateServerTlsPolicy updates the parameters of a single ServerTlsPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateServerTlsPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateServerTlsPolicyRequest.
}
op, err := c.UpdateServerTlsPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateServerTlsPolicyOperation ¶
func (c *Client) UpdateServerTlsPolicyOperation(name string) *UpdateServerTlsPolicyOperation
UpdateServerTlsPolicyOperation returns a new UpdateServerTlsPolicyOperation from a given name. The name must be that of a previously created UpdateServerTlsPolicyOperation, possibly from a different process.
func (*Client) UpdateTlsInspectionPolicy ¶
func (c *Client) UpdateTlsInspectionPolicy(ctx context.Context, req *networksecuritypb.UpdateTlsInspectionPolicyRequest, opts ...gax.CallOption) (*UpdateTlsInspectionPolicyOperation, error)
UpdateTlsInspectionPolicy updates the parameters of a single TlsInspectionPolicy.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateTlsInspectionPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateTlsInspectionPolicyRequest.
}
op, err := c.UpdateTlsInspectionPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateTlsInspectionPolicyOperation ¶
func (c *Client) UpdateTlsInspectionPolicyOperation(name string) *UpdateTlsInspectionPolicyOperation
UpdateTlsInspectionPolicyOperation returns a new UpdateTlsInspectionPolicyOperation from a given name. The name must be that of a previously created UpdateTlsInspectionPolicyOperation, possibly from a different process.
func (*Client) UpdateUrlList ¶
func (c *Client) UpdateUrlList(ctx context.Context, req *networksecuritypb.UpdateUrlListRequest, opts ...gax.CallOption) (*UpdateUrlListOperation, error)
UpdateUrlList updates the parameters of a single UrlList.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateUrlListRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateUrlListRequest.
}
op, err := c.UpdateUrlList(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*Client) UpdateUrlListOperation ¶
func (c *Client) UpdateUrlListOperation(name string) *UpdateUrlListOperation
UpdateUrlListOperation returns a new UpdateUrlListOperation from a given name. The name must be that of a previously created UpdateUrlListOperation, possibly from a different process.
type ClientTlsPolicyIterator ¶
type ClientTlsPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.ClientTlsPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
ClientTlsPolicyIterator manages a stream of *networksecuritypb.ClientTlsPolicy.
func (*ClientTlsPolicyIterator) All ¶
func (it *ClientTlsPolicyIterator) All() iter.Seq2[*networksecuritypb.ClientTlsPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ClientTlsPolicyIterator) Next ¶
func (it *ClientTlsPolicyIterator) Next() (*networksecuritypb.ClientTlsPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ClientTlsPolicyIterator) PageInfo ¶
func (it *ClientTlsPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CloneAddressGroupItemsOperation ¶
type CloneAddressGroupItemsOperation struct {
// contains filtered or unexported fields
}
CloneAddressGroupItemsOperation manages a long-running operation from CloneAddressGroupItems.
func (*CloneAddressGroupItemsOperation) Done ¶
func (op *CloneAddressGroupItemsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CloneAddressGroupItemsOperation) Metadata ¶
func (op *CloneAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CloneAddressGroupItemsOperation) Name ¶
func (op *CloneAddressGroupItemsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CloneAddressGroupItemsOperation) Poll ¶
func (op *CloneAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CloneAddressGroupItemsOperation) Wait ¶
func (op *CloneAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateAddressGroupOperation ¶
type CreateAddressGroupOperation struct {
// contains filtered or unexported fields
}
CreateAddressGroupOperation manages a long-running operation from CreateAddressGroup.
func (*CreateAddressGroupOperation) Done ¶
func (op *CreateAddressGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateAddressGroupOperation) Metadata ¶
func (op *CreateAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAddressGroupOperation) Name ¶
func (op *CreateAddressGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAddressGroupOperation) Poll ¶
func (op *CreateAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAddressGroupOperation) Wait ¶
func (op *CreateAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateAuthorizationPolicyOperation ¶
type CreateAuthorizationPolicyOperation struct {
// contains filtered or unexported fields
}
CreateAuthorizationPolicyOperation manages a long-running operation from CreateAuthorizationPolicy.
func (*CreateAuthorizationPolicyOperation) Done ¶
func (op *CreateAuthorizationPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateAuthorizationPolicyOperation) Metadata ¶
func (op *CreateAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAuthorizationPolicyOperation) Name ¶
func (op *CreateAuthorizationPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAuthorizationPolicyOperation) Poll ¶
func (op *CreateAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAuthorizationPolicyOperation) Wait ¶
func (op *CreateAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateAuthzPolicyOperation ¶
type CreateAuthzPolicyOperation struct {
// contains filtered or unexported fields
}
CreateAuthzPolicyOperation manages a long-running operation from CreateAuthzPolicy.
func (*CreateAuthzPolicyOperation) Done ¶
func (op *CreateAuthzPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateAuthzPolicyOperation) Metadata ¶
func (op *CreateAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAuthzPolicyOperation) Name ¶
func (op *CreateAuthzPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAuthzPolicyOperation) Poll ¶
func (op *CreateAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAuthzPolicyOperation) Wait ¶
func (op *CreateAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateBackendAuthenticationConfigOperation ¶
type CreateBackendAuthenticationConfigOperation struct {
// contains filtered or unexported fields
}
CreateBackendAuthenticationConfigOperation manages a long-running operation from CreateBackendAuthenticationConfig.
func (*CreateBackendAuthenticationConfigOperation) Done ¶
func (op *CreateBackendAuthenticationConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateBackendAuthenticationConfigOperation) Metadata ¶
func (op *CreateBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateBackendAuthenticationConfigOperation) Name ¶
func (op *CreateBackendAuthenticationConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateBackendAuthenticationConfigOperation) Poll ¶
func (op *CreateBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateBackendAuthenticationConfigOperation) Wait ¶
func (op *CreateBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateClientTlsPolicyOperation ¶
type CreateClientTlsPolicyOperation struct {
// contains filtered or unexported fields
}
CreateClientTlsPolicyOperation manages a long-running operation from CreateClientTlsPolicy.
func (*CreateClientTlsPolicyOperation) Done ¶
func (op *CreateClientTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateClientTlsPolicyOperation) Metadata ¶
func (op *CreateClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateClientTlsPolicyOperation) Name ¶
func (op *CreateClientTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateClientTlsPolicyOperation) Poll ¶
func (op *CreateClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateClientTlsPolicyOperation) Wait ¶
func (op *CreateClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateFirewallEndpointAssociationOperation ¶
type CreateFirewallEndpointAssociationOperation struct {
// contains filtered or unexported fields
}
CreateFirewallEndpointAssociationOperation manages a long-running operation from CreateFirewallEndpointAssociation.
func (*CreateFirewallEndpointAssociationOperation) Done ¶
func (op *CreateFirewallEndpointAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateFirewallEndpointAssociationOperation) Metadata ¶
func (op *CreateFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateFirewallEndpointAssociationOperation) Name ¶
func (op *CreateFirewallEndpointAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateFirewallEndpointAssociationOperation) Poll ¶
func (op *CreateFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateFirewallEndpointAssociationOperation) Wait ¶
func (op *CreateFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateFirewallEndpointOperation ¶
type CreateFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
CreateFirewallEndpointOperation manages a long-running operation from CreateFirewallEndpoint.
func (*CreateFirewallEndpointOperation) Done ¶
func (op *CreateFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateFirewallEndpointOperation) Metadata ¶
func (op *CreateFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateFirewallEndpointOperation) Name ¶
func (op *CreateFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateFirewallEndpointOperation) Poll ¶
func (op *CreateFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateFirewallEndpointOperation) Wait ¶
func (op *CreateFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateGatewaySecurityPolicyOperation ¶
type CreateGatewaySecurityPolicyOperation struct {
// contains filtered or unexported fields
}
CreateGatewaySecurityPolicyOperation manages a long-running operation from CreateGatewaySecurityPolicy.
func (*CreateGatewaySecurityPolicyOperation) Done ¶
func (op *CreateGatewaySecurityPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateGatewaySecurityPolicyOperation) Metadata ¶
func (op *CreateGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateGatewaySecurityPolicyOperation) Name ¶
func (op *CreateGatewaySecurityPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateGatewaySecurityPolicyOperation) Poll ¶
func (op *CreateGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateGatewaySecurityPolicyOperation) Wait ¶
func (op *CreateGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateGatewaySecurityPolicyRuleOperation ¶
type CreateGatewaySecurityPolicyRuleOperation struct {
// contains filtered or unexported fields
}
CreateGatewaySecurityPolicyRuleOperation manages a long-running operation from CreateGatewaySecurityPolicyRule.
func (*CreateGatewaySecurityPolicyRuleOperation) Done ¶
func (op *CreateGatewaySecurityPolicyRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateGatewaySecurityPolicyRuleOperation) Metadata ¶
func (op *CreateGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateGatewaySecurityPolicyRuleOperation) Name ¶
func (op *CreateGatewaySecurityPolicyRuleOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateGatewaySecurityPolicyRuleOperation) Poll ¶
func (op *CreateGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateGatewaySecurityPolicyRuleOperation) Wait ¶
func (op *CreateGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateInterceptDeploymentGroupOperation ¶
type CreateInterceptDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
CreateInterceptDeploymentGroupOperation manages a long-running operation from CreateInterceptDeploymentGroup.
func (*CreateInterceptDeploymentGroupOperation) Done ¶
func (op *CreateInterceptDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateInterceptDeploymentGroupOperation) Metadata ¶
func (op *CreateInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateInterceptDeploymentGroupOperation) Name ¶
func (op *CreateInterceptDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateInterceptDeploymentGroupOperation) Poll ¶
func (op *CreateInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateInterceptDeploymentGroupOperation) Wait ¶
func (op *CreateInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateInterceptDeploymentOperation ¶
type CreateInterceptDeploymentOperation struct {
// contains filtered or unexported fields
}
CreateInterceptDeploymentOperation manages a long-running operation from CreateInterceptDeployment.
func (*CreateInterceptDeploymentOperation) Done ¶
func (op *CreateInterceptDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateInterceptDeploymentOperation) Metadata ¶
func (op *CreateInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateInterceptDeploymentOperation) Name ¶
func (op *CreateInterceptDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateInterceptDeploymentOperation) Poll ¶
func (op *CreateInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateInterceptDeploymentOperation) Wait ¶
func (op *CreateInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateInterceptEndpointGroupAssociationOperation ¶
type CreateInterceptEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
CreateInterceptEndpointGroupAssociationOperation manages a long-running operation from CreateInterceptEndpointGroupAssociation.
func (*CreateInterceptEndpointGroupAssociationOperation) Done ¶
func (op *CreateInterceptEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateInterceptEndpointGroupAssociationOperation) Metadata ¶
func (op *CreateInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateInterceptEndpointGroupAssociationOperation) Name ¶
func (op *CreateInterceptEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateInterceptEndpointGroupAssociationOperation) Poll ¶
func (op *CreateInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateInterceptEndpointGroupAssociationOperation) Wait ¶
func (op *CreateInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateInterceptEndpointGroupOperation ¶
type CreateInterceptEndpointGroupOperation struct {
// contains filtered or unexported fields
}
CreateInterceptEndpointGroupOperation manages a long-running operation from CreateInterceptEndpointGroup.
func (*CreateInterceptEndpointGroupOperation) Done ¶
func (op *CreateInterceptEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateInterceptEndpointGroupOperation) Metadata ¶
func (op *CreateInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateInterceptEndpointGroupOperation) Name ¶
func (op *CreateInterceptEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateInterceptEndpointGroupOperation) Poll ¶
func (op *CreateInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateInterceptEndpointGroupOperation) Wait ¶
func (op *CreateInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateMirroringDeploymentGroupOperation ¶
type CreateMirroringDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
CreateMirroringDeploymentGroupOperation manages a long-running operation from CreateMirroringDeploymentGroup.
func (*CreateMirroringDeploymentGroupOperation) Done ¶
func (op *CreateMirroringDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateMirroringDeploymentGroupOperation) Metadata ¶
func (op *CreateMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateMirroringDeploymentGroupOperation) Name ¶
func (op *CreateMirroringDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateMirroringDeploymentGroupOperation) Poll ¶
func (op *CreateMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateMirroringDeploymentGroupOperation) Wait ¶
func (op *CreateMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateMirroringDeploymentOperation ¶
type CreateMirroringDeploymentOperation struct {
// contains filtered or unexported fields
}
CreateMirroringDeploymentOperation manages a long-running operation from CreateMirroringDeployment.
func (*CreateMirroringDeploymentOperation) Done ¶
func (op *CreateMirroringDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateMirroringDeploymentOperation) Metadata ¶
func (op *CreateMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateMirroringDeploymentOperation) Name ¶
func (op *CreateMirroringDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateMirroringDeploymentOperation) Poll ¶
func (op *CreateMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateMirroringDeploymentOperation) Wait ¶
func (op *CreateMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateMirroringEndpointGroupAssociationOperation ¶
type CreateMirroringEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
CreateMirroringEndpointGroupAssociationOperation manages a long-running operation from CreateMirroringEndpointGroupAssociation.
func (*CreateMirroringEndpointGroupAssociationOperation) Done ¶
func (op *CreateMirroringEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateMirroringEndpointGroupAssociationOperation) Metadata ¶
func (op *CreateMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateMirroringEndpointGroupAssociationOperation) Name ¶
func (op *CreateMirroringEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateMirroringEndpointGroupAssociationOperation) Poll ¶
func (op *CreateMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateMirroringEndpointGroupAssociationOperation) Wait ¶
func (op *CreateMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateMirroringEndpointGroupOperation ¶
type CreateMirroringEndpointGroupOperation struct {
// contains filtered or unexported fields
}
CreateMirroringEndpointGroupOperation manages a long-running operation from CreateMirroringEndpointGroup.
func (*CreateMirroringEndpointGroupOperation) Done ¶
func (op *CreateMirroringEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateMirroringEndpointGroupOperation) Metadata ¶
func (op *CreateMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateMirroringEndpointGroupOperation) Name ¶
func (op *CreateMirroringEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateMirroringEndpointGroupOperation) Poll ¶
func (op *CreateMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateMirroringEndpointGroupOperation) Wait ¶
func (op *CreateMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateProjectFirewallEndpointOperation ¶
type CreateProjectFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
CreateProjectFirewallEndpointOperation manages a long-running operation from CreateProjectFirewallEndpoint.
func (*CreateProjectFirewallEndpointOperation) Done ¶
func (op *CreateProjectFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateProjectFirewallEndpointOperation) Metadata ¶
func (op *CreateProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateProjectFirewallEndpointOperation) Name ¶
func (op *CreateProjectFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateProjectFirewallEndpointOperation) Poll ¶
func (op *CreateProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateProjectFirewallEndpointOperation) Wait ¶
func (op *CreateProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateSACAttachmentOperation ¶
type CreateSACAttachmentOperation struct {
// contains filtered or unexported fields
}
CreateSACAttachmentOperation manages a long-running operation from CreateSACAttachment.
func (*CreateSACAttachmentOperation) Done ¶
func (op *CreateSACAttachmentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSACAttachmentOperation) Metadata ¶
func (op *CreateSACAttachmentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSACAttachmentOperation) Name ¶
func (op *CreateSACAttachmentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSACAttachmentOperation) Poll ¶
func (op *CreateSACAttachmentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACAttachment, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSACAttachmentOperation) Wait ¶
func (op *CreateSACAttachmentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACAttachment, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateSACRealmOperation ¶
type CreateSACRealmOperation struct {
// contains filtered or unexported fields
}
CreateSACRealmOperation manages a long-running operation from CreateSACRealm.
func (*CreateSACRealmOperation) Done ¶
func (op *CreateSACRealmOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSACRealmOperation) Metadata ¶
func (op *CreateSACRealmOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSACRealmOperation) Name ¶
func (op *CreateSACRealmOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSACRealmOperation) Poll ¶
func (op *CreateSACRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACRealm, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSACRealmOperation) Wait ¶
func (op *CreateSACRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SACRealm, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateSecurityProfileGroupOperation ¶
type CreateSecurityProfileGroupOperation struct {
// contains filtered or unexported fields
}
CreateSecurityProfileGroupOperation manages a long-running operation from CreateSecurityProfileGroup.
func (*CreateSecurityProfileGroupOperation) Done ¶
func (op *CreateSecurityProfileGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSecurityProfileGroupOperation) Metadata ¶
func (op *CreateSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSecurityProfileGroupOperation) Name ¶
func (op *CreateSecurityProfileGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSecurityProfileGroupOperation) Poll ¶
func (op *CreateSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSecurityProfileGroupOperation) Wait ¶
func (op *CreateSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateSecurityProfileOperation ¶
type CreateSecurityProfileOperation struct {
// contains filtered or unexported fields
}
CreateSecurityProfileOperation manages a long-running operation from CreateSecurityProfile.
func (*CreateSecurityProfileOperation) Done ¶
func (op *CreateSecurityProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSecurityProfileOperation) Metadata ¶
func (op *CreateSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSecurityProfileOperation) Name ¶
func (op *CreateSecurityProfileOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSecurityProfileOperation) Poll ¶
func (op *CreateSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSecurityProfileOperation) Wait ¶
func (op *CreateSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateServerTlsPolicyOperation ¶
type CreateServerTlsPolicyOperation struct {
// contains filtered or unexported fields
}
CreateServerTlsPolicyOperation manages a long-running operation from CreateServerTlsPolicy.
func (*CreateServerTlsPolicyOperation) Done ¶
func (op *CreateServerTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateServerTlsPolicyOperation) Metadata ¶
func (op *CreateServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateServerTlsPolicyOperation) Name ¶
func (op *CreateServerTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateServerTlsPolicyOperation) Poll ¶
func (op *CreateServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateServerTlsPolicyOperation) Wait ¶
func (op *CreateServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateTlsInspectionPolicyOperation ¶
type CreateTlsInspectionPolicyOperation struct {
// contains filtered or unexported fields
}
CreateTlsInspectionPolicyOperation manages a long-running operation from CreateTlsInspectionPolicy.
func (*CreateTlsInspectionPolicyOperation) Done ¶
func (op *CreateTlsInspectionPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateTlsInspectionPolicyOperation) Metadata ¶
func (op *CreateTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateTlsInspectionPolicyOperation) Name ¶
func (op *CreateTlsInspectionPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateTlsInspectionPolicyOperation) Poll ¶
func (op *CreateTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateTlsInspectionPolicyOperation) Wait ¶
func (op *CreateTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateUrlListOperation ¶
type CreateUrlListOperation struct {
// contains filtered or unexported fields
}
CreateUrlListOperation manages a long-running operation from CreateUrlList.
func (*CreateUrlListOperation) Done ¶
func (op *CreateUrlListOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateUrlListOperation) Metadata ¶
func (op *CreateUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateUrlListOperation) Name ¶
func (op *CreateUrlListOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateUrlListOperation) Poll ¶
func (op *CreateUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateUrlListOperation) Wait ¶
func (op *CreateUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteAddressGroupOperation ¶
type DeleteAddressGroupOperation struct {
// contains filtered or unexported fields
}
DeleteAddressGroupOperation manages a long-running operation from DeleteAddressGroup.
func (*DeleteAddressGroupOperation) Done ¶
func (op *DeleteAddressGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteAddressGroupOperation) Metadata ¶
func (op *DeleteAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAddressGroupOperation) Name ¶
func (op *DeleteAddressGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAddressGroupOperation) Poll ¶
func (op *DeleteAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAddressGroupOperation) Wait ¶
func (op *DeleteAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteAuthorizationPolicyOperation ¶
type DeleteAuthorizationPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteAuthorizationPolicyOperation manages a long-running operation from DeleteAuthorizationPolicy.
func (*DeleteAuthorizationPolicyOperation) Done ¶
func (op *DeleteAuthorizationPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteAuthorizationPolicyOperation) Metadata ¶
func (op *DeleteAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAuthorizationPolicyOperation) Name ¶
func (op *DeleteAuthorizationPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAuthorizationPolicyOperation) Poll ¶
func (op *DeleteAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAuthorizationPolicyOperation) Wait ¶
func (op *DeleteAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteAuthzPolicyOperation ¶
type DeleteAuthzPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteAuthzPolicyOperation manages a long-running operation from DeleteAuthzPolicy.
func (*DeleteAuthzPolicyOperation) Done ¶
func (op *DeleteAuthzPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteAuthzPolicyOperation) Metadata ¶
func (op *DeleteAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteAuthzPolicyOperation) Name ¶
func (op *DeleteAuthzPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteAuthzPolicyOperation) Poll ¶
func (op *DeleteAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteAuthzPolicyOperation) Wait ¶
func (op *DeleteAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteBackendAuthenticationConfigOperation ¶
type DeleteBackendAuthenticationConfigOperation struct {
// contains filtered or unexported fields
}
DeleteBackendAuthenticationConfigOperation manages a long-running operation from DeleteBackendAuthenticationConfig.
func (*DeleteBackendAuthenticationConfigOperation) Done ¶
func (op *DeleteBackendAuthenticationConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteBackendAuthenticationConfigOperation) Metadata ¶
func (op *DeleteBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteBackendAuthenticationConfigOperation) Name ¶
func (op *DeleteBackendAuthenticationConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteBackendAuthenticationConfigOperation) Poll ¶
func (op *DeleteBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteBackendAuthenticationConfigOperation) Wait ¶
func (op *DeleteBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteClientTlsPolicyOperation ¶
type DeleteClientTlsPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteClientTlsPolicyOperation manages a long-running operation from DeleteClientTlsPolicy.
func (*DeleteClientTlsPolicyOperation) Done ¶
func (op *DeleteClientTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteClientTlsPolicyOperation) Metadata ¶
func (op *DeleteClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteClientTlsPolicyOperation) Name ¶
func (op *DeleteClientTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteClientTlsPolicyOperation) Poll ¶
func (op *DeleteClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteClientTlsPolicyOperation) Wait ¶
func (op *DeleteClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteFirewallEndpointAssociationOperation ¶
type DeleteFirewallEndpointAssociationOperation struct {
// contains filtered or unexported fields
}
DeleteFirewallEndpointAssociationOperation manages a long-running operation from DeleteFirewallEndpointAssociation.
func (*DeleteFirewallEndpointAssociationOperation) Done ¶
func (op *DeleteFirewallEndpointAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteFirewallEndpointAssociationOperation) Metadata ¶
func (op *DeleteFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteFirewallEndpointAssociationOperation) Name ¶
func (op *DeleteFirewallEndpointAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteFirewallEndpointAssociationOperation) Poll ¶
func (op *DeleteFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteFirewallEndpointAssociationOperation) Wait ¶
func (op *DeleteFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteFirewallEndpointOperation ¶
type DeleteFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
DeleteFirewallEndpointOperation manages a long-running operation from DeleteFirewallEndpoint.
func (*DeleteFirewallEndpointOperation) Done ¶
func (op *DeleteFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteFirewallEndpointOperation) Metadata ¶
func (op *DeleteFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteFirewallEndpointOperation) Name ¶
func (op *DeleteFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteFirewallEndpointOperation) Poll ¶
func (op *DeleteFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteFirewallEndpointOperation) Wait ¶
func (op *DeleteFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteGatewaySecurityPolicyOperation ¶
type DeleteGatewaySecurityPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteGatewaySecurityPolicyOperation manages a long-running operation from DeleteGatewaySecurityPolicy.
func (*DeleteGatewaySecurityPolicyOperation) Done ¶
func (op *DeleteGatewaySecurityPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteGatewaySecurityPolicyOperation) Metadata ¶
func (op *DeleteGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteGatewaySecurityPolicyOperation) Name ¶
func (op *DeleteGatewaySecurityPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteGatewaySecurityPolicyOperation) Poll ¶
func (op *DeleteGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteGatewaySecurityPolicyOperation) Wait ¶
func (op *DeleteGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteGatewaySecurityPolicyRuleOperation ¶
type DeleteGatewaySecurityPolicyRuleOperation struct {
// contains filtered or unexported fields
}
DeleteGatewaySecurityPolicyRuleOperation manages a long-running operation from DeleteGatewaySecurityPolicyRule.
func (*DeleteGatewaySecurityPolicyRuleOperation) Done ¶
func (op *DeleteGatewaySecurityPolicyRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteGatewaySecurityPolicyRuleOperation) Metadata ¶
func (op *DeleteGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteGatewaySecurityPolicyRuleOperation) Name ¶
func (op *DeleteGatewaySecurityPolicyRuleOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteGatewaySecurityPolicyRuleOperation) Poll ¶
func (op *DeleteGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteGatewaySecurityPolicyRuleOperation) Wait ¶
func (op *DeleteGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteInterceptDeploymentGroupOperation ¶
type DeleteInterceptDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
DeleteInterceptDeploymentGroupOperation manages a long-running operation from DeleteInterceptDeploymentGroup.
func (*DeleteInterceptDeploymentGroupOperation) Done ¶
func (op *DeleteInterceptDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteInterceptDeploymentGroupOperation) Metadata ¶
func (op *DeleteInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteInterceptDeploymentGroupOperation) Name ¶
func (op *DeleteInterceptDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteInterceptDeploymentGroupOperation) Poll ¶
func (op *DeleteInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteInterceptDeploymentGroupOperation) Wait ¶
func (op *DeleteInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteInterceptDeploymentOperation ¶
type DeleteInterceptDeploymentOperation struct {
// contains filtered or unexported fields
}
DeleteInterceptDeploymentOperation manages a long-running operation from DeleteInterceptDeployment.
func (*DeleteInterceptDeploymentOperation) Done ¶
func (op *DeleteInterceptDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteInterceptDeploymentOperation) Metadata ¶
func (op *DeleteInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteInterceptDeploymentOperation) Name ¶
func (op *DeleteInterceptDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteInterceptDeploymentOperation) Poll ¶
func (op *DeleteInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteInterceptDeploymentOperation) Wait ¶
func (op *DeleteInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteInterceptEndpointGroupAssociationOperation ¶
type DeleteInterceptEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
DeleteInterceptEndpointGroupAssociationOperation manages a long-running operation from DeleteInterceptEndpointGroupAssociation.
func (*DeleteInterceptEndpointGroupAssociationOperation) Done ¶
func (op *DeleteInterceptEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteInterceptEndpointGroupAssociationOperation) Metadata ¶
func (op *DeleteInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteInterceptEndpointGroupAssociationOperation) Name ¶
func (op *DeleteInterceptEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteInterceptEndpointGroupAssociationOperation) Poll ¶
func (op *DeleteInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteInterceptEndpointGroupAssociationOperation) Wait ¶
func (op *DeleteInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteInterceptEndpointGroupOperation ¶
type DeleteInterceptEndpointGroupOperation struct {
// contains filtered or unexported fields
}
DeleteInterceptEndpointGroupOperation manages a long-running operation from DeleteInterceptEndpointGroup.
func (*DeleteInterceptEndpointGroupOperation) Done ¶
func (op *DeleteInterceptEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteInterceptEndpointGroupOperation) Metadata ¶
func (op *DeleteInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteInterceptEndpointGroupOperation) Name ¶
func (op *DeleteInterceptEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteInterceptEndpointGroupOperation) Poll ¶
func (op *DeleteInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteInterceptEndpointGroupOperation) Wait ¶
func (op *DeleteInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteMirroringDeploymentGroupOperation ¶
type DeleteMirroringDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
DeleteMirroringDeploymentGroupOperation manages a long-running operation from DeleteMirroringDeploymentGroup.
func (*DeleteMirroringDeploymentGroupOperation) Done ¶
func (op *DeleteMirroringDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteMirroringDeploymentGroupOperation) Metadata ¶
func (op *DeleteMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteMirroringDeploymentGroupOperation) Name ¶
func (op *DeleteMirroringDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteMirroringDeploymentGroupOperation) Poll ¶
func (op *DeleteMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteMirroringDeploymentGroupOperation) Wait ¶
func (op *DeleteMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteMirroringDeploymentOperation ¶
type DeleteMirroringDeploymentOperation struct {
// contains filtered or unexported fields
}
DeleteMirroringDeploymentOperation manages a long-running operation from DeleteMirroringDeployment.
func (*DeleteMirroringDeploymentOperation) Done ¶
func (op *DeleteMirroringDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteMirroringDeploymentOperation) Metadata ¶
func (op *DeleteMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteMirroringDeploymentOperation) Name ¶
func (op *DeleteMirroringDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteMirroringDeploymentOperation) Poll ¶
func (op *DeleteMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteMirroringDeploymentOperation) Wait ¶
func (op *DeleteMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteMirroringEndpointGroupAssociationOperation ¶
type DeleteMirroringEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
DeleteMirroringEndpointGroupAssociationOperation manages a long-running operation from DeleteMirroringEndpointGroupAssociation.
func (*DeleteMirroringEndpointGroupAssociationOperation) Done ¶
func (op *DeleteMirroringEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteMirroringEndpointGroupAssociationOperation) Metadata ¶
func (op *DeleteMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteMirroringEndpointGroupAssociationOperation) Name ¶
func (op *DeleteMirroringEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteMirroringEndpointGroupAssociationOperation) Poll ¶
func (op *DeleteMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteMirroringEndpointGroupAssociationOperation) Wait ¶
func (op *DeleteMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteMirroringEndpointGroupOperation ¶
type DeleteMirroringEndpointGroupOperation struct {
// contains filtered or unexported fields
}
DeleteMirroringEndpointGroupOperation manages a long-running operation from DeleteMirroringEndpointGroup.
func (*DeleteMirroringEndpointGroupOperation) Done ¶
func (op *DeleteMirroringEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteMirroringEndpointGroupOperation) Metadata ¶
func (op *DeleteMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteMirroringEndpointGroupOperation) Name ¶
func (op *DeleteMirroringEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteMirroringEndpointGroupOperation) Poll ¶
func (op *DeleteMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteMirroringEndpointGroupOperation) Wait ¶
func (op *DeleteMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteProjectFirewallEndpointOperation ¶
type DeleteProjectFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
DeleteProjectFirewallEndpointOperation manages a long-running operation from DeleteProjectFirewallEndpoint.
func (*DeleteProjectFirewallEndpointOperation) Done ¶
func (op *DeleteProjectFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteProjectFirewallEndpointOperation) Metadata ¶
func (op *DeleteProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteProjectFirewallEndpointOperation) Name ¶
func (op *DeleteProjectFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteProjectFirewallEndpointOperation) Poll ¶
func (op *DeleteProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteProjectFirewallEndpointOperation) Wait ¶
func (op *DeleteProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteSACAttachmentOperation ¶
type DeleteSACAttachmentOperation struct {
// contains filtered or unexported fields
}
DeleteSACAttachmentOperation manages a long-running operation from DeleteSACAttachment.
func (*DeleteSACAttachmentOperation) Done ¶
func (op *DeleteSACAttachmentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSACAttachmentOperation) Metadata ¶
func (op *DeleteSACAttachmentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSACAttachmentOperation) Name ¶
func (op *DeleteSACAttachmentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSACAttachmentOperation) Poll ¶
func (op *DeleteSACAttachmentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSACAttachmentOperation) Wait ¶
func (op *DeleteSACAttachmentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteSACRealmOperation ¶
type DeleteSACRealmOperation struct {
// contains filtered or unexported fields
}
DeleteSACRealmOperation manages a long-running operation from DeleteSACRealm.
func (*DeleteSACRealmOperation) Done ¶
func (op *DeleteSACRealmOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSACRealmOperation) Metadata ¶
func (op *DeleteSACRealmOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSACRealmOperation) Name ¶
func (op *DeleteSACRealmOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSACRealmOperation) Poll ¶
func (op *DeleteSACRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSACRealmOperation) Wait ¶
func (op *DeleteSACRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteSecurityProfileGroupOperation ¶
type DeleteSecurityProfileGroupOperation struct {
// contains filtered or unexported fields
}
DeleteSecurityProfileGroupOperation manages a long-running operation from DeleteSecurityProfileGroup.
func (*DeleteSecurityProfileGroupOperation) Done ¶
func (op *DeleteSecurityProfileGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSecurityProfileGroupOperation) Metadata ¶
func (op *DeleteSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSecurityProfileGroupOperation) Name ¶
func (op *DeleteSecurityProfileGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSecurityProfileGroupOperation) Poll ¶
func (op *DeleteSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSecurityProfileGroupOperation) Wait ¶
func (op *DeleteSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteSecurityProfileOperation ¶
type DeleteSecurityProfileOperation struct {
// contains filtered or unexported fields
}
DeleteSecurityProfileOperation manages a long-running operation from DeleteSecurityProfile.
func (*DeleteSecurityProfileOperation) Done ¶
func (op *DeleteSecurityProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSecurityProfileOperation) Metadata ¶
func (op *DeleteSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSecurityProfileOperation) Name ¶
func (op *DeleteSecurityProfileOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSecurityProfileOperation) Poll ¶
func (op *DeleteSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSecurityProfileOperation) Wait ¶
func (op *DeleteSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteServerTlsPolicyOperation ¶
type DeleteServerTlsPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteServerTlsPolicyOperation manages a long-running operation from DeleteServerTlsPolicy.
func (*DeleteServerTlsPolicyOperation) Done ¶
func (op *DeleteServerTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteServerTlsPolicyOperation) Metadata ¶
func (op *DeleteServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteServerTlsPolicyOperation) Name ¶
func (op *DeleteServerTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteServerTlsPolicyOperation) Poll ¶
func (op *DeleteServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteServerTlsPolicyOperation) Wait ¶
func (op *DeleteServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteTlsInspectionPolicyOperation ¶
type DeleteTlsInspectionPolicyOperation struct {
// contains filtered or unexported fields
}
DeleteTlsInspectionPolicyOperation manages a long-running operation from DeleteTlsInspectionPolicy.
func (*DeleteTlsInspectionPolicyOperation) Done ¶
func (op *DeleteTlsInspectionPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteTlsInspectionPolicyOperation) Metadata ¶
func (op *DeleteTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteTlsInspectionPolicyOperation) Name ¶
func (op *DeleteTlsInspectionPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteTlsInspectionPolicyOperation) Poll ¶
func (op *DeleteTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteTlsInspectionPolicyOperation) Wait ¶
func (op *DeleteTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteUrlListOperation ¶
type DeleteUrlListOperation struct {
// contains filtered or unexported fields
}
DeleteUrlListOperation manages a long-running operation from DeleteUrlList.
func (*DeleteUrlListOperation) Done ¶
func (op *DeleteUrlListOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteUrlListOperation) Metadata ¶
func (op *DeleteUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteUrlListOperation) Name ¶
func (op *DeleteUrlListOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteUrlListOperation) Poll ¶
func (op *DeleteUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteUrlListOperation) Wait ¶
func (op *DeleteUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DnsThreatDetectorCallOptions ¶
type DnsThreatDetectorCallOptions struct {
ListDnsThreatDetectors []gax.CallOption
GetDnsThreatDetector []gax.CallOption
CreateDnsThreatDetector []gax.CallOption
UpdateDnsThreatDetector []gax.CallOption
DeleteDnsThreatDetector []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
DnsThreatDetectorCallOptions contains the retry settings for each method of DnsThreatDetectorClient.
type DnsThreatDetectorClient ¶
type DnsThreatDetectorClient struct {
// The call options for this service.
CallOptions *DnsThreatDetectorCallOptions
// contains filtered or unexported fields
}
DnsThreatDetectorClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
The Network Security API for DNS Threat Detectors.
func NewDnsThreatDetectorClient ¶
func NewDnsThreatDetectorClient(ctx context.Context, opts ...option.ClientOption) (*DnsThreatDetectorClient, error)
NewDnsThreatDetectorClient creates a new dns threat detector service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
The Network Security API for DNS Threat Detectors.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewDnsThreatDetectorRESTClient ¶
func NewDnsThreatDetectorRESTClient(ctx context.Context, opts ...option.ClientOption) (*DnsThreatDetectorClient, error)
NewDnsThreatDetectorRESTClient creates a new dns threat detector service rest client.
The Network Security API for DNS Threat Detectors.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*DnsThreatDetectorClient) CancelOperation ¶
func (c *DnsThreatDetectorClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*DnsThreatDetectorClient) Close ¶
func (c *DnsThreatDetectorClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*DnsThreatDetectorClient) Connection
deprecated
func (c *DnsThreatDetectorClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*DnsThreatDetectorClient) CreateDnsThreatDetector ¶
func (c *DnsThreatDetectorClient) CreateDnsThreatDetector(ctx context.Context, req *networksecuritypb.CreateDnsThreatDetectorRequest, opts ...gax.CallOption) (*networksecuritypb.DnsThreatDetector, error)
CreateDnsThreatDetector creates a new DnsThreatDetector in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateDnsThreatDetectorRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateDnsThreatDetectorRequest.
}
resp, err := c.CreateDnsThreatDetector(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) DeleteDnsThreatDetector ¶
func (c *DnsThreatDetectorClient) DeleteDnsThreatDetector(ctx context.Context, req *networksecuritypb.DeleteDnsThreatDetectorRequest, opts ...gax.CallOption) error
DeleteDnsThreatDetector deletes a single DnsThreatDetector.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteDnsThreatDetectorRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteDnsThreatDetectorRequest.
}
err = c.DeleteDnsThreatDetector(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*DnsThreatDetectorClient) DeleteOperation ¶
func (c *DnsThreatDetectorClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*DnsThreatDetectorClient) GetDnsThreatDetector ¶
func (c *DnsThreatDetectorClient) GetDnsThreatDetector(ctx context.Context, req *networksecuritypb.GetDnsThreatDetectorRequest, opts ...gax.CallOption) (*networksecuritypb.DnsThreatDetector, error)
GetDnsThreatDetector gets the details of a single DnsThreatDetector.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetDnsThreatDetectorRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetDnsThreatDetectorRequest.
}
resp, err := c.GetDnsThreatDetector(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) GetIamPolicy ¶
func (c *DnsThreatDetectorClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) GetLocation ¶
func (c *DnsThreatDetectorClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) GetOperation ¶
func (c *DnsThreatDetectorClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) ListDnsThreatDetectors ¶
func (c *DnsThreatDetectorClient) ListDnsThreatDetectors(ctx context.Context, req *networksecuritypb.ListDnsThreatDetectorsRequest, opts ...gax.CallOption) *DnsThreatDetectorIterator
ListDnsThreatDetectors lists DnsThreatDetectors in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListDnsThreatDetectorsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListDnsThreatDetectorsRequest.
}
it := c.ListDnsThreatDetectors(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListDnsThreatDetectorsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListDnsThreatDetectorsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListDnsThreatDetectorsRequest.
}
for resp, err := range c.ListDnsThreatDetectors(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*DnsThreatDetectorClient) ListLocations ¶
func (c *DnsThreatDetectorClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*DnsThreatDetectorClient) ListOperations ¶
func (c *DnsThreatDetectorClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*DnsThreatDetectorClient) SetIamPolicy ¶
func (c *DnsThreatDetectorClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) TestIamPermissions ¶
func (c *DnsThreatDetectorClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*DnsThreatDetectorClient) UpdateDnsThreatDetector ¶
func (c *DnsThreatDetectorClient) UpdateDnsThreatDetector(ctx context.Context, req *networksecuritypb.UpdateDnsThreatDetectorRequest, opts ...gax.CallOption) (*networksecuritypb.DnsThreatDetector, error)
UpdateDnsThreatDetector updates a single DnsThreatDetector.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewDnsThreatDetectorClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateDnsThreatDetectorRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateDnsThreatDetectorRequest.
}
resp, err := c.UpdateDnsThreatDetector(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
type DnsThreatDetectorIterator ¶
type DnsThreatDetectorIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.DnsThreatDetector, nextPageToken string, err error)
// contains filtered or unexported fields
}
DnsThreatDetectorIterator manages a stream of *networksecuritypb.DnsThreatDetector.
func (*DnsThreatDetectorIterator) All ¶
func (it *DnsThreatDetectorIterator) All() iter.Seq2[*networksecuritypb.DnsThreatDetector, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*DnsThreatDetectorIterator) Next ¶
func (it *DnsThreatDetectorIterator) Next() (*networksecuritypb.DnsThreatDetector, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*DnsThreatDetectorIterator) PageInfo ¶
func (it *DnsThreatDetectorIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type FirewallActivationCallOptions ¶
type FirewallActivationCallOptions struct {
ListFirewallEndpoints []gax.CallOption
ListProjectFirewallEndpoints []gax.CallOption
GetFirewallEndpoint []gax.CallOption
GetProjectFirewallEndpoint []gax.CallOption
CreateFirewallEndpoint []gax.CallOption
CreateProjectFirewallEndpoint []gax.CallOption
DeleteFirewallEndpoint []gax.CallOption
DeleteProjectFirewallEndpoint []gax.CallOption
UpdateFirewallEndpoint []gax.CallOption
UpdateProjectFirewallEndpoint []gax.CallOption
ListFirewallEndpointAssociations []gax.CallOption
GetFirewallEndpointAssociation []gax.CallOption
CreateFirewallEndpointAssociation []gax.CallOption
DeleteFirewallEndpointAssociation []gax.CallOption
UpdateFirewallEndpointAssociation []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
FirewallActivationCallOptions contains the retry settings for each method of FirewallActivationClient.
type FirewallActivationClient ¶
type FirewallActivationClient struct {
// The call options for this service.
CallOptions *FirewallActivationCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
FirewallActivationClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service for managing Firewall Endpoints and Associations.
func NewFirewallActivationClient ¶
func NewFirewallActivationClient(ctx context.Context, opts ...option.ClientOption) (*FirewallActivationClient, error)
NewFirewallActivationClient creates a new firewall activation client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service for managing Firewall Endpoints and Associations.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewFirewallActivationRESTClient ¶
func NewFirewallActivationRESTClient(ctx context.Context, opts ...option.ClientOption) (*FirewallActivationClient, error)
NewFirewallActivationRESTClient creates a new firewall activation rest client.
Service for managing Firewall Endpoints and Associations.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*FirewallActivationClient) CancelOperation ¶
func (c *FirewallActivationClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*FirewallActivationClient) Close ¶
func (c *FirewallActivationClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*FirewallActivationClient) Connection
deprecated
func (c *FirewallActivationClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*FirewallActivationClient) CreateFirewallEndpoint ¶
func (c *FirewallActivationClient) CreateFirewallEndpoint(ctx context.Context, req *networksecuritypb.CreateFirewallEndpointRequest, opts ...gax.CallOption) (*CreateFirewallEndpointOperation, error)
CreateFirewallEndpoint creates a new FirewallEndpoint in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointRequest.
}
op, err := c.CreateFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) CreateFirewallEndpointAssociation ¶
func (c *FirewallActivationClient) CreateFirewallEndpointAssociation(ctx context.Context, req *networksecuritypb.CreateFirewallEndpointAssociationRequest, opts ...gax.CallOption) (*CreateFirewallEndpointAssociationOperation, error)
CreateFirewallEndpointAssociation creates a new FirewallEndpointAssociation in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateFirewallEndpointAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointAssociationRequest.
}
op, err := c.CreateFirewallEndpointAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) CreateFirewallEndpointAssociationOperation ¶
func (c *FirewallActivationClient) CreateFirewallEndpointAssociationOperation(name string) *CreateFirewallEndpointAssociationOperation
CreateFirewallEndpointAssociationOperation returns a new CreateFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created CreateFirewallEndpointAssociationOperation, possibly from a different process.
func (*FirewallActivationClient) CreateFirewallEndpointOperation ¶
func (c *FirewallActivationClient) CreateFirewallEndpointOperation(name string) *CreateFirewallEndpointOperation
CreateFirewallEndpointOperation returns a new CreateFirewallEndpointOperation from a given name. The name must be that of a previously created CreateFirewallEndpointOperation, possibly from a different process.
func (*FirewallActivationClient) CreateProjectFirewallEndpoint ¶
func (c *FirewallActivationClient) CreateProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.CreateFirewallEndpointRequest, opts ...gax.CallOption) (*CreateProjectFirewallEndpointOperation, error)
CreateProjectFirewallEndpoint creates a new FirewallEndpoint in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateFirewallEndpointRequest.
}
op, err := c.CreateProjectFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) CreateProjectFirewallEndpointOperation ¶
func (c *FirewallActivationClient) CreateProjectFirewallEndpointOperation(name string) *CreateProjectFirewallEndpointOperation
CreateProjectFirewallEndpointOperation returns a new CreateProjectFirewallEndpointOperation from a given name. The name must be that of a previously created CreateProjectFirewallEndpointOperation, possibly from a different process.
func (*FirewallActivationClient) DeleteFirewallEndpoint ¶
func (c *FirewallActivationClient) DeleteFirewallEndpoint(ctx context.Context, req *networksecuritypb.DeleteFirewallEndpointRequest, opts ...gax.CallOption) (*DeleteFirewallEndpointOperation, error)
DeleteFirewallEndpoint deletes a single org Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointRequest.
}
op, err := c.DeleteFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*FirewallActivationClient) DeleteFirewallEndpointAssociation ¶
func (c *FirewallActivationClient) DeleteFirewallEndpointAssociation(ctx context.Context, req *networksecuritypb.DeleteFirewallEndpointAssociationRequest, opts ...gax.CallOption) (*DeleteFirewallEndpointAssociationOperation, error)
DeleteFirewallEndpointAssociation deletes a single FirewallEndpointAssociation.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteFirewallEndpointAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointAssociationRequest.
}
op, err := c.DeleteFirewallEndpointAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*FirewallActivationClient) DeleteFirewallEndpointAssociationOperation ¶
func (c *FirewallActivationClient) DeleteFirewallEndpointAssociationOperation(name string) *DeleteFirewallEndpointAssociationOperation
DeleteFirewallEndpointAssociationOperation returns a new DeleteFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created DeleteFirewallEndpointAssociationOperation, possibly from a different process.
func (*FirewallActivationClient) DeleteFirewallEndpointOperation ¶
func (c *FirewallActivationClient) DeleteFirewallEndpointOperation(name string) *DeleteFirewallEndpointOperation
DeleteFirewallEndpointOperation returns a new DeleteFirewallEndpointOperation from a given name. The name must be that of a previously created DeleteFirewallEndpointOperation, possibly from a different process.
func (*FirewallActivationClient) DeleteOperation ¶
func (c *FirewallActivationClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*FirewallActivationClient) DeleteProjectFirewallEndpoint ¶
func (c *FirewallActivationClient) DeleteProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.DeleteFirewallEndpointRequest, opts ...gax.CallOption) (*DeleteProjectFirewallEndpointOperation, error)
DeleteProjectFirewallEndpoint deletes a single project Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteFirewallEndpointRequest.
}
op, err := c.DeleteProjectFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*FirewallActivationClient) DeleteProjectFirewallEndpointOperation ¶
func (c *FirewallActivationClient) DeleteProjectFirewallEndpointOperation(name string) *DeleteProjectFirewallEndpointOperation
DeleteProjectFirewallEndpointOperation returns a new DeleteProjectFirewallEndpointOperation from a given name. The name must be that of a previously created DeleteProjectFirewallEndpointOperation, possibly from a different process.
func (*FirewallActivationClient) GetFirewallEndpoint ¶
func (c *FirewallActivationClient) GetFirewallEndpoint(ctx context.Context, req *networksecuritypb.GetFirewallEndpointRequest, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
GetFirewallEndpoint gets details of a single org Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointRequest.
}
resp, err := c.GetFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) GetFirewallEndpointAssociation ¶
func (c *FirewallActivationClient) GetFirewallEndpointAssociation(ctx context.Context, req *networksecuritypb.GetFirewallEndpointAssociationRequest, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
GetFirewallEndpointAssociation gets details of a single FirewallEndpointAssociation.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetFirewallEndpointAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointAssociationRequest.
}
resp, err := c.GetFirewallEndpointAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) GetIamPolicy ¶
func (c *FirewallActivationClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) GetLocation ¶
func (c *FirewallActivationClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) GetOperation ¶
func (c *FirewallActivationClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) GetProjectFirewallEndpoint ¶
func (c *FirewallActivationClient) GetProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.GetFirewallEndpointRequest, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
GetProjectFirewallEndpoint gets details of a single project Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetFirewallEndpointRequest.
}
resp, err := c.GetProjectFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) ListFirewallEndpointAssociations ¶
func (c *FirewallActivationClient) ListFirewallEndpointAssociations(ctx context.Context, req *networksecuritypb.ListFirewallEndpointAssociationsRequest, opts ...gax.CallOption) *FirewallEndpointAssociationIterator
ListFirewallEndpointAssociations lists Associations in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointAssociationsRequest.
}
it := c.ListFirewallEndpointAssociations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListFirewallEndpointAssociationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointAssociationsRequest.
}
for resp, err := range c.ListFirewallEndpointAssociations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*FirewallActivationClient) ListFirewallEndpoints ¶
func (c *FirewallActivationClient) ListFirewallEndpoints(ctx context.Context, req *networksecuritypb.ListFirewallEndpointsRequest, opts ...gax.CallOption) *FirewallEndpointIterator
ListFirewallEndpoints lists FirewallEndpoints in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
}
it := c.ListFirewallEndpoints(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListFirewallEndpointsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
}
for resp, err := range c.ListFirewallEndpoints(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*FirewallActivationClient) ListLocations ¶
func (c *FirewallActivationClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*FirewallActivationClient) ListOperations ¶
func (c *FirewallActivationClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*FirewallActivationClient) ListProjectFirewallEndpoints ¶
func (c *FirewallActivationClient) ListProjectFirewallEndpoints(ctx context.Context, req *networksecuritypb.ListFirewallEndpointsRequest, opts ...gax.CallOption) *FirewallEndpointIterator
ListProjectFirewallEndpoints lists FirewallEndpoints in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
}
it := c.ListProjectFirewallEndpoints(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListFirewallEndpointsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListFirewallEndpointsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListFirewallEndpointsRequest.
}
for resp, err := range c.ListProjectFirewallEndpoints(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*FirewallActivationClient) SetIamPolicy ¶
func (c *FirewallActivationClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) TestIamPermissions ¶
func (c *FirewallActivationClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) UpdateFirewallEndpoint ¶
func (c *FirewallActivationClient) UpdateFirewallEndpoint(ctx context.Context, req *networksecuritypb.UpdateFirewallEndpointRequest, opts ...gax.CallOption) (*UpdateFirewallEndpointOperation, error)
UpdateFirewallEndpoint update a single org Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointRequest.
}
op, err := c.UpdateFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) UpdateFirewallEndpointAssociation ¶
func (c *FirewallActivationClient) UpdateFirewallEndpointAssociation(ctx context.Context, req *networksecuritypb.UpdateFirewallEndpointAssociationRequest, opts ...gax.CallOption) (*UpdateFirewallEndpointAssociationOperation, error)
UpdateFirewallEndpointAssociation update a single FirewallEndpointAssociation.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateFirewallEndpointAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointAssociationRequest.
}
op, err := c.UpdateFirewallEndpointAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) UpdateFirewallEndpointAssociationOperation ¶
func (c *FirewallActivationClient) UpdateFirewallEndpointAssociationOperation(name string) *UpdateFirewallEndpointAssociationOperation
UpdateFirewallEndpointAssociationOperation returns a new UpdateFirewallEndpointAssociationOperation from a given name. The name must be that of a previously created UpdateFirewallEndpointAssociationOperation, possibly from a different process.
func (*FirewallActivationClient) UpdateFirewallEndpointOperation ¶
func (c *FirewallActivationClient) UpdateFirewallEndpointOperation(name string) *UpdateFirewallEndpointOperation
UpdateFirewallEndpointOperation returns a new UpdateFirewallEndpointOperation from a given name. The name must be that of a previously created UpdateFirewallEndpointOperation, possibly from a different process.
func (*FirewallActivationClient) UpdateProjectFirewallEndpoint ¶
func (c *FirewallActivationClient) UpdateProjectFirewallEndpoint(ctx context.Context, req *networksecuritypb.UpdateFirewallEndpointRequest, opts ...gax.CallOption) (*UpdateProjectFirewallEndpointOperation, error)
UpdateProjectFirewallEndpoint update a single project Endpoint.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewFirewallActivationClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateFirewallEndpointRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateFirewallEndpointRequest.
}
op, err := c.UpdateProjectFirewallEndpoint(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*FirewallActivationClient) UpdateProjectFirewallEndpointOperation ¶
func (c *FirewallActivationClient) UpdateProjectFirewallEndpointOperation(name string) *UpdateProjectFirewallEndpointOperation
UpdateProjectFirewallEndpointOperation returns a new UpdateProjectFirewallEndpointOperation from a given name. The name must be that of a previously created UpdateProjectFirewallEndpointOperation, possibly from a different process.
type FirewallEndpointAssociationIterator ¶
type FirewallEndpointAssociationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.FirewallEndpointAssociation, nextPageToken string, err error)
// contains filtered or unexported fields
}
FirewallEndpointAssociationIterator manages a stream of *networksecuritypb.FirewallEndpointAssociation.
func (*FirewallEndpointAssociationIterator) All ¶
func (it *FirewallEndpointAssociationIterator) All() iter.Seq2[*networksecuritypb.FirewallEndpointAssociation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*FirewallEndpointAssociationIterator) Next ¶
func (it *FirewallEndpointAssociationIterator) Next() (*networksecuritypb.FirewallEndpointAssociation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*FirewallEndpointAssociationIterator) PageInfo ¶
func (it *FirewallEndpointAssociationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type FirewallEndpointIterator ¶
type FirewallEndpointIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.FirewallEndpoint, nextPageToken string, err error)
// contains filtered or unexported fields
}
FirewallEndpointIterator manages a stream of *networksecuritypb.FirewallEndpoint.
func (*FirewallEndpointIterator) All ¶
func (it *FirewallEndpointIterator) All() iter.Seq2[*networksecuritypb.FirewallEndpoint, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*FirewallEndpointIterator) Next ¶
func (it *FirewallEndpointIterator) Next() (*networksecuritypb.FirewallEndpoint, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*FirewallEndpointIterator) PageInfo ¶
func (it *FirewallEndpointIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type GatewaySecurityPolicyIterator ¶
type GatewaySecurityPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.GatewaySecurityPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
GatewaySecurityPolicyIterator manages a stream of *networksecuritypb.GatewaySecurityPolicy.
func (*GatewaySecurityPolicyIterator) All ¶
func (it *GatewaySecurityPolicyIterator) All() iter.Seq2[*networksecuritypb.GatewaySecurityPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*GatewaySecurityPolicyIterator) Next ¶
func (it *GatewaySecurityPolicyIterator) Next() (*networksecuritypb.GatewaySecurityPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*GatewaySecurityPolicyIterator) PageInfo ¶
func (it *GatewaySecurityPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type GatewaySecurityPolicyRuleIterator ¶
type GatewaySecurityPolicyRuleIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.GatewaySecurityPolicyRule, nextPageToken string, err error)
// contains filtered or unexported fields
}
GatewaySecurityPolicyRuleIterator manages a stream of *networksecuritypb.GatewaySecurityPolicyRule.
func (*GatewaySecurityPolicyRuleIterator) All ¶
func (it *GatewaySecurityPolicyRuleIterator) All() iter.Seq2[*networksecuritypb.GatewaySecurityPolicyRule, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*GatewaySecurityPolicyRuleIterator) Next ¶
func (it *GatewaySecurityPolicyRuleIterator) Next() (*networksecuritypb.GatewaySecurityPolicyRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*GatewaySecurityPolicyRuleIterator) PageInfo ¶
func (it *GatewaySecurityPolicyRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type InterceptCallOptions ¶
type InterceptCallOptions struct {
ListInterceptEndpointGroups []gax.CallOption
GetInterceptEndpointGroup []gax.CallOption
CreateInterceptEndpointGroup []gax.CallOption
UpdateInterceptEndpointGroup []gax.CallOption
DeleteInterceptEndpointGroup []gax.CallOption
ListInterceptEndpointGroupAssociations []gax.CallOption
GetInterceptEndpointGroupAssociation []gax.CallOption
CreateInterceptEndpointGroupAssociation []gax.CallOption
UpdateInterceptEndpointGroupAssociation []gax.CallOption
DeleteInterceptEndpointGroupAssociation []gax.CallOption
ListInterceptDeploymentGroups []gax.CallOption
GetInterceptDeploymentGroup []gax.CallOption
CreateInterceptDeploymentGroup []gax.CallOption
UpdateInterceptDeploymentGroup []gax.CallOption
DeleteInterceptDeploymentGroup []gax.CallOption
ListInterceptDeployments []gax.CallOption
GetInterceptDeployment []gax.CallOption
CreateInterceptDeployment []gax.CallOption
UpdateInterceptDeployment []gax.CallOption
DeleteInterceptDeployment []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
InterceptCallOptions contains the retry settings for each method of InterceptClient.
type InterceptClient ¶
type InterceptClient struct {
// The call options for this service.
CallOptions *InterceptCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
InterceptClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.
func NewInterceptClient ¶
func NewInterceptClient(ctx context.Context, opts ...option.ClientOption) (*InterceptClient, error)
NewInterceptClient creates a new intercept client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewInterceptRESTClient ¶
func NewInterceptRESTClient(ctx context.Context, opts ...option.ClientOption) (*InterceptClient, error)
NewInterceptRESTClient creates a new intercept rest client.
Service for Third-Party Packet Intercept (TPPI). TPPI is the “in-band” flavor of the Network Security Integrations product.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*InterceptClient) CancelOperation ¶
func (c *InterceptClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) Close ¶
func (c *InterceptClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*InterceptClient) Connection
deprecated
func (c *InterceptClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*InterceptClient) CreateInterceptDeployment ¶
func (c *InterceptClient) CreateInterceptDeployment(ctx context.Context, req *networksecuritypb.CreateInterceptDeploymentRequest, opts ...gax.CallOption) (*CreateInterceptDeploymentOperation, error)
CreateInterceptDeployment creates a deployment in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateInterceptDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptDeploymentRequest.
}
op, err := c.CreateInterceptDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) CreateInterceptDeploymentGroup ¶
func (c *InterceptClient) CreateInterceptDeploymentGroup(ctx context.Context, req *networksecuritypb.CreateInterceptDeploymentGroupRequest, opts ...gax.CallOption) (*CreateInterceptDeploymentGroupOperation, error)
CreateInterceptDeploymentGroup creates a deployment group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateInterceptDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptDeploymentGroupRequest.
}
op, err := c.CreateInterceptDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) CreateInterceptDeploymentGroupOperation ¶
func (c *InterceptClient) CreateInterceptDeploymentGroupOperation(name string) *CreateInterceptDeploymentGroupOperation
CreateInterceptDeploymentGroupOperation returns a new CreateInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created CreateInterceptDeploymentGroupOperation, possibly from a different process.
func (*InterceptClient) CreateInterceptDeploymentOperation ¶
func (c *InterceptClient) CreateInterceptDeploymentOperation(name string) *CreateInterceptDeploymentOperation
CreateInterceptDeploymentOperation returns a new CreateInterceptDeploymentOperation from a given name. The name must be that of a previously created CreateInterceptDeploymentOperation, possibly from a different process.
func (*InterceptClient) CreateInterceptEndpointGroup ¶
func (c *InterceptClient) CreateInterceptEndpointGroup(ctx context.Context, req *networksecuritypb.CreateInterceptEndpointGroupRequest, opts ...gax.CallOption) (*CreateInterceptEndpointGroupOperation, error)
CreateInterceptEndpointGroup creates an endpoint group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateInterceptEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptEndpointGroupRequest.
}
op, err := c.CreateInterceptEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) CreateInterceptEndpointGroupAssociation ¶
func (c *InterceptClient) CreateInterceptEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.CreateInterceptEndpointGroupAssociationRequest, opts ...gax.CallOption) (*CreateInterceptEndpointGroupAssociationOperation, error)
CreateInterceptEndpointGroupAssociation creates an association in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateInterceptEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateInterceptEndpointGroupAssociationRequest.
}
op, err := c.CreateInterceptEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) CreateInterceptEndpointGroupAssociationOperation ¶
func (c *InterceptClient) CreateInterceptEndpointGroupAssociationOperation(name string) *CreateInterceptEndpointGroupAssociationOperation
CreateInterceptEndpointGroupAssociationOperation returns a new CreateInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created CreateInterceptEndpointGroupAssociationOperation, possibly from a different process.
func (*InterceptClient) CreateInterceptEndpointGroupOperation ¶
func (c *InterceptClient) CreateInterceptEndpointGroupOperation(name string) *CreateInterceptEndpointGroupOperation
CreateInterceptEndpointGroupOperation returns a new CreateInterceptEndpointGroupOperation from a given name. The name must be that of a previously created CreateInterceptEndpointGroupOperation, possibly from a different process.
func (*InterceptClient) DeleteInterceptDeployment ¶
func (c *InterceptClient) DeleteInterceptDeployment(ctx context.Context, req *networksecuritypb.DeleteInterceptDeploymentRequest, opts ...gax.CallOption) (*DeleteInterceptDeploymentOperation, error)
DeleteInterceptDeployment deletes a deployment. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteInterceptDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptDeploymentRequest.
}
op, err := c.DeleteInterceptDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) DeleteInterceptDeploymentGroup ¶
func (c *InterceptClient) DeleteInterceptDeploymentGroup(ctx context.Context, req *networksecuritypb.DeleteInterceptDeploymentGroupRequest, opts ...gax.CallOption) (*DeleteInterceptDeploymentGroupOperation, error)
DeleteInterceptDeploymentGroup deletes a deployment group. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteInterceptDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptDeploymentGroupRequest.
}
op, err := c.DeleteInterceptDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) DeleteInterceptDeploymentGroupOperation ¶
func (c *InterceptClient) DeleteInterceptDeploymentGroupOperation(name string) *DeleteInterceptDeploymentGroupOperation
DeleteInterceptDeploymentGroupOperation returns a new DeleteInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created DeleteInterceptDeploymentGroupOperation, possibly from a different process.
func (*InterceptClient) DeleteInterceptDeploymentOperation ¶
func (c *InterceptClient) DeleteInterceptDeploymentOperation(name string) *DeleteInterceptDeploymentOperation
DeleteInterceptDeploymentOperation returns a new DeleteInterceptDeploymentOperation from a given name. The name must be that of a previously created DeleteInterceptDeploymentOperation, possibly from a different process.
func (*InterceptClient) DeleteInterceptEndpointGroup ¶
func (c *InterceptClient) DeleteInterceptEndpointGroup(ctx context.Context, req *networksecuritypb.DeleteInterceptEndpointGroupRequest, opts ...gax.CallOption) (*DeleteInterceptEndpointGroupOperation, error)
DeleteInterceptEndpointGroup deletes an endpoint group. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteInterceptEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptEndpointGroupRequest.
}
op, err := c.DeleteInterceptEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) DeleteInterceptEndpointGroupAssociation ¶
func (c *InterceptClient) DeleteInterceptEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.DeleteInterceptEndpointGroupAssociationRequest, opts ...gax.CallOption) (*DeleteInterceptEndpointGroupAssociationOperation, error)
DeleteInterceptEndpointGroupAssociation deletes an association. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteInterceptEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteInterceptEndpointGroupAssociationRequest.
}
op, err := c.DeleteInterceptEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) DeleteInterceptEndpointGroupAssociationOperation ¶
func (c *InterceptClient) DeleteInterceptEndpointGroupAssociationOperation(name string) *DeleteInterceptEndpointGroupAssociationOperation
DeleteInterceptEndpointGroupAssociationOperation returns a new DeleteInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created DeleteInterceptEndpointGroupAssociationOperation, possibly from a different process.
func (*InterceptClient) DeleteInterceptEndpointGroupOperation ¶
func (c *InterceptClient) DeleteInterceptEndpointGroupOperation(name string) *DeleteInterceptEndpointGroupOperation
DeleteInterceptEndpointGroupOperation returns a new DeleteInterceptEndpointGroupOperation from a given name. The name must be that of a previously created DeleteInterceptEndpointGroupOperation, possibly from a different process.
func (*InterceptClient) DeleteOperation ¶
func (c *InterceptClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*InterceptClient) GetIamPolicy ¶
func (c *InterceptClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetInterceptDeployment ¶
func (c *InterceptClient) GetInterceptDeployment(ctx context.Context, req *networksecuritypb.GetInterceptDeploymentRequest, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
GetInterceptDeployment gets a specific deployment. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetInterceptDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptDeploymentRequest.
}
resp, err := c.GetInterceptDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetInterceptDeploymentGroup ¶
func (c *InterceptClient) GetInterceptDeploymentGroup(ctx context.Context, req *networksecuritypb.GetInterceptDeploymentGroupRequest, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
GetInterceptDeploymentGroup gets a specific deployment group. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetInterceptDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptDeploymentGroupRequest.
}
resp, err := c.GetInterceptDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetInterceptEndpointGroup ¶
func (c *InterceptClient) GetInterceptEndpointGroup(ctx context.Context, req *networksecuritypb.GetInterceptEndpointGroupRequest, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
GetInterceptEndpointGroup gets a specific endpoint group. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetInterceptEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptEndpointGroupRequest.
}
resp, err := c.GetInterceptEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetInterceptEndpointGroupAssociation ¶
func (c *InterceptClient) GetInterceptEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.GetInterceptEndpointGroupAssociationRequest, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
GetInterceptEndpointGroupAssociation gets a specific association. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetInterceptEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetInterceptEndpointGroupAssociationRequest.
}
resp, err := c.GetInterceptEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetLocation ¶
func (c *InterceptClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) GetOperation ¶
func (c *InterceptClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) ListInterceptDeploymentGroups ¶
func (c *InterceptClient) ListInterceptDeploymentGroups(ctx context.Context, req *networksecuritypb.ListInterceptDeploymentGroupsRequest, opts ...gax.CallOption) *InterceptDeploymentGroupIterator
ListInterceptDeploymentGroups lists deployment groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptDeploymentGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentGroupsRequest.
}
it := c.ListInterceptDeploymentGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListInterceptDeploymentGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptDeploymentGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentGroupsRequest.
}
for resp, err := range c.ListInterceptDeploymentGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) ListInterceptDeployments ¶
func (c *InterceptClient) ListInterceptDeployments(ctx context.Context, req *networksecuritypb.ListInterceptDeploymentsRequest, opts ...gax.CallOption) *InterceptDeploymentIterator
ListInterceptDeployments lists deployments in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptDeploymentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentsRequest.
}
it := c.ListInterceptDeployments(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListInterceptDeploymentsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptDeploymentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptDeploymentsRequest.
}
for resp, err := range c.ListInterceptDeployments(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) ListInterceptEndpointGroupAssociations ¶
func (c *InterceptClient) ListInterceptEndpointGroupAssociations(ctx context.Context, req *networksecuritypb.ListInterceptEndpointGroupAssociationsRequest, opts ...gax.CallOption) *InterceptEndpointGroupAssociationIterator
ListInterceptEndpointGroupAssociations lists associations in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptEndpointGroupAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupAssociationsRequest.
}
it := c.ListInterceptEndpointGroupAssociations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListInterceptEndpointGroupAssociationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptEndpointGroupAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupAssociationsRequest.
}
for resp, err := range c.ListInterceptEndpointGroupAssociations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) ListInterceptEndpointGroups ¶
func (c *InterceptClient) ListInterceptEndpointGroups(ctx context.Context, req *networksecuritypb.ListInterceptEndpointGroupsRequest, opts ...gax.CallOption) *InterceptEndpointGroupIterator
ListInterceptEndpointGroups lists endpoint groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptEndpointGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupsRequest.
}
it := c.ListInterceptEndpointGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListInterceptEndpointGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListInterceptEndpointGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListInterceptEndpointGroupsRequest.
}
for resp, err := range c.ListInterceptEndpointGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) ListLocations ¶
func (c *InterceptClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) ListOperations ¶
func (c *InterceptClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*InterceptClient) SetIamPolicy ¶
func (c *InterceptClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) TestIamPermissions ¶
func (c *InterceptClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) UpdateInterceptDeployment ¶
func (c *InterceptClient) UpdateInterceptDeployment(ctx context.Context, req *networksecuritypb.UpdateInterceptDeploymentRequest, opts ...gax.CallOption) (*UpdateInterceptDeploymentOperation, error)
UpdateInterceptDeployment updates a deployment. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateInterceptDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptDeploymentRequest.
}
op, err := c.UpdateInterceptDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) UpdateInterceptDeploymentGroup ¶
func (c *InterceptClient) UpdateInterceptDeploymentGroup(ctx context.Context, req *networksecuritypb.UpdateInterceptDeploymentGroupRequest, opts ...gax.CallOption) (*UpdateInterceptDeploymentGroupOperation, error)
UpdateInterceptDeploymentGroup updates a deployment group. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateInterceptDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptDeploymentGroupRequest.
}
op, err := c.UpdateInterceptDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) UpdateInterceptDeploymentGroupOperation ¶
func (c *InterceptClient) UpdateInterceptDeploymentGroupOperation(name string) *UpdateInterceptDeploymentGroupOperation
UpdateInterceptDeploymentGroupOperation returns a new UpdateInterceptDeploymentGroupOperation from a given name. The name must be that of a previously created UpdateInterceptDeploymentGroupOperation, possibly from a different process.
func (*InterceptClient) UpdateInterceptDeploymentOperation ¶
func (c *InterceptClient) UpdateInterceptDeploymentOperation(name string) *UpdateInterceptDeploymentOperation
UpdateInterceptDeploymentOperation returns a new UpdateInterceptDeploymentOperation from a given name. The name must be that of a previously created UpdateInterceptDeploymentOperation, possibly from a different process.
func (*InterceptClient) UpdateInterceptEndpointGroup ¶
func (c *InterceptClient) UpdateInterceptEndpointGroup(ctx context.Context, req *networksecuritypb.UpdateInterceptEndpointGroupRequest, opts ...gax.CallOption) (*UpdateInterceptEndpointGroupOperation, error)
UpdateInterceptEndpointGroup updates an endpoint group. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateInterceptEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptEndpointGroupRequest.
}
op, err := c.UpdateInterceptEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) UpdateInterceptEndpointGroupAssociation ¶
func (c *InterceptClient) UpdateInterceptEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.UpdateInterceptEndpointGroupAssociationRequest, opts ...gax.CallOption) (*UpdateInterceptEndpointGroupAssociationOperation, error)
UpdateInterceptEndpointGroupAssociation updates an association. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewInterceptClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateInterceptEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateInterceptEndpointGroupAssociationRequest.
}
op, err := c.UpdateInterceptEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*InterceptClient) UpdateInterceptEndpointGroupAssociationOperation ¶
func (c *InterceptClient) UpdateInterceptEndpointGroupAssociationOperation(name string) *UpdateInterceptEndpointGroupAssociationOperation
UpdateInterceptEndpointGroupAssociationOperation returns a new UpdateInterceptEndpointGroupAssociationOperation from a given name. The name must be that of a previously created UpdateInterceptEndpointGroupAssociationOperation, possibly from a different process.
func (*InterceptClient) UpdateInterceptEndpointGroupOperation ¶
func (c *InterceptClient) UpdateInterceptEndpointGroupOperation(name string) *UpdateInterceptEndpointGroupOperation
UpdateInterceptEndpointGroupOperation returns a new UpdateInterceptEndpointGroupOperation from a given name. The name must be that of a previously created UpdateInterceptEndpointGroupOperation, possibly from a different process.
type InterceptDeploymentGroupIterator ¶
type InterceptDeploymentGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.InterceptDeploymentGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
InterceptDeploymentGroupIterator manages a stream of *networksecuritypb.InterceptDeploymentGroup.
func (*InterceptDeploymentGroupIterator) All ¶
func (it *InterceptDeploymentGroupIterator) All() iter.Seq2[*networksecuritypb.InterceptDeploymentGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*InterceptDeploymentGroupIterator) Next ¶
func (it *InterceptDeploymentGroupIterator) Next() (*networksecuritypb.InterceptDeploymentGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*InterceptDeploymentGroupIterator) PageInfo ¶
func (it *InterceptDeploymentGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type InterceptDeploymentIterator ¶
type InterceptDeploymentIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.InterceptDeployment, nextPageToken string, err error)
// contains filtered or unexported fields
}
InterceptDeploymentIterator manages a stream of *networksecuritypb.InterceptDeployment.
func (*InterceptDeploymentIterator) All ¶
func (it *InterceptDeploymentIterator) All() iter.Seq2[*networksecuritypb.InterceptDeployment, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*InterceptDeploymentIterator) Next ¶
func (it *InterceptDeploymentIterator) Next() (*networksecuritypb.InterceptDeployment, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*InterceptDeploymentIterator) PageInfo ¶
func (it *InterceptDeploymentIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type InterceptEndpointGroupAssociationIterator ¶
type InterceptEndpointGroupAssociationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.InterceptEndpointGroupAssociation, nextPageToken string, err error)
// contains filtered or unexported fields
}
InterceptEndpointGroupAssociationIterator manages a stream of *networksecuritypb.InterceptEndpointGroupAssociation.
func (*InterceptEndpointGroupAssociationIterator) All ¶
func (it *InterceptEndpointGroupAssociationIterator) All() iter.Seq2[*networksecuritypb.InterceptEndpointGroupAssociation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*InterceptEndpointGroupAssociationIterator) Next ¶
func (it *InterceptEndpointGroupAssociationIterator) Next() (*networksecuritypb.InterceptEndpointGroupAssociation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*InterceptEndpointGroupAssociationIterator) PageInfo ¶
func (it *InterceptEndpointGroupAssociationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type InterceptEndpointGroupIterator ¶
type InterceptEndpointGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.InterceptEndpointGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
InterceptEndpointGroupIterator manages a stream of *networksecuritypb.InterceptEndpointGroup.
func (*InterceptEndpointGroupIterator) All ¶
func (it *InterceptEndpointGroupIterator) All() iter.Seq2[*networksecuritypb.InterceptEndpointGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*InterceptEndpointGroupIterator) Next ¶
func (it *InterceptEndpointGroupIterator) Next() (*networksecuritypb.InterceptEndpointGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*InterceptEndpointGroupIterator) PageInfo ¶
func (it *InterceptEndpointGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ListAddressGroupReferencesResponse_AddressGroupReferenceIterator ¶
type ListAddressGroupReferencesResponse_AddressGroupReferenceIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference, nextPageToken string, err error)
// contains filtered or unexported fields
}
ListAddressGroupReferencesResponse_AddressGroupReferenceIterator manages a stream of *networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference.
func (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) All ¶
func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) All() iter.Seq2[*networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) Next ¶
func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) Next() (*networksecuritypb.ListAddressGroupReferencesResponse_AddressGroupReference, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) PageInfo ¶
func (it *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type LocationIterator ¶
type LocationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error)
// contains filtered or unexported fields
}
LocationIterator manages a stream of *locationpb.Location.
func (*LocationIterator) All ¶
func (it *LocationIterator) All() iter.Seq2[*locationpb.Location, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LocationIterator) Next ¶
func (it *LocationIterator) Next() (*locationpb.Location, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LocationIterator) PageInfo ¶
func (it *LocationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MirroringCallOptions ¶
type MirroringCallOptions struct {
ListMirroringEndpointGroups []gax.CallOption
GetMirroringEndpointGroup []gax.CallOption
CreateMirroringEndpointGroup []gax.CallOption
UpdateMirroringEndpointGroup []gax.CallOption
DeleteMirroringEndpointGroup []gax.CallOption
ListMirroringEndpointGroupAssociations []gax.CallOption
GetMirroringEndpointGroupAssociation []gax.CallOption
CreateMirroringEndpointGroupAssociation []gax.CallOption
UpdateMirroringEndpointGroupAssociation []gax.CallOption
DeleteMirroringEndpointGroupAssociation []gax.CallOption
ListMirroringDeploymentGroups []gax.CallOption
GetMirroringDeploymentGroup []gax.CallOption
CreateMirroringDeploymentGroup []gax.CallOption
UpdateMirroringDeploymentGroup []gax.CallOption
DeleteMirroringDeploymentGroup []gax.CallOption
ListMirroringDeployments []gax.CallOption
GetMirroringDeployment []gax.CallOption
CreateMirroringDeployment []gax.CallOption
UpdateMirroringDeployment []gax.CallOption
DeleteMirroringDeployment []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
MirroringCallOptions contains the retry settings for each method of MirroringClient.
type MirroringClient ¶
type MirroringClient struct {
// The call options for this service.
CallOptions *MirroringCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
MirroringClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
PM2 is the “out-of-band” flavor of the Network Security Integrations product.
func NewMirroringClient ¶
func NewMirroringClient(ctx context.Context, opts ...option.ClientOption) (*MirroringClient, error)
NewMirroringClient creates a new mirroring client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
PM2 is the “out-of-band” flavor of the Network Security Integrations product.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewMirroringRESTClient ¶
func NewMirroringRESTClient(ctx context.Context, opts ...option.ClientOption) (*MirroringClient, error)
NewMirroringRESTClient creates a new mirroring rest client.
PM2 is the “out-of-band” flavor of the Network Security Integrations product.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*MirroringClient) CancelOperation ¶
func (c *MirroringClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) Close ¶
func (c *MirroringClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*MirroringClient) Connection
deprecated
func (c *MirroringClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*MirroringClient) CreateMirroringDeployment ¶
func (c *MirroringClient) CreateMirroringDeployment(ctx context.Context, req *networksecuritypb.CreateMirroringDeploymentRequest, opts ...gax.CallOption) (*CreateMirroringDeploymentOperation, error)
CreateMirroringDeployment creates a deployment in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateMirroringDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringDeploymentRequest.
}
op, err := c.CreateMirroringDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) CreateMirroringDeploymentGroup ¶
func (c *MirroringClient) CreateMirroringDeploymentGroup(ctx context.Context, req *networksecuritypb.CreateMirroringDeploymentGroupRequest, opts ...gax.CallOption) (*CreateMirroringDeploymentGroupOperation, error)
CreateMirroringDeploymentGroup creates a deployment group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateMirroringDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringDeploymentGroupRequest.
}
op, err := c.CreateMirroringDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) CreateMirroringDeploymentGroupOperation ¶
func (c *MirroringClient) CreateMirroringDeploymentGroupOperation(name string) *CreateMirroringDeploymentGroupOperation
CreateMirroringDeploymentGroupOperation returns a new CreateMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created CreateMirroringDeploymentGroupOperation, possibly from a different process.
func (*MirroringClient) CreateMirroringDeploymentOperation ¶
func (c *MirroringClient) CreateMirroringDeploymentOperation(name string) *CreateMirroringDeploymentOperation
CreateMirroringDeploymentOperation returns a new CreateMirroringDeploymentOperation from a given name. The name must be that of a previously created CreateMirroringDeploymentOperation, possibly from a different process.
func (*MirroringClient) CreateMirroringEndpointGroup ¶
func (c *MirroringClient) CreateMirroringEndpointGroup(ctx context.Context, req *networksecuritypb.CreateMirroringEndpointGroupRequest, opts ...gax.CallOption) (*CreateMirroringEndpointGroupOperation, error)
CreateMirroringEndpointGroup creates an endpoint group in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateMirroringEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringEndpointGroupRequest.
}
op, err := c.CreateMirroringEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) CreateMirroringEndpointGroupAssociation ¶
func (c *MirroringClient) CreateMirroringEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.CreateMirroringEndpointGroupAssociationRequest, opts ...gax.CallOption) (*CreateMirroringEndpointGroupAssociationOperation, error)
CreateMirroringEndpointGroupAssociation creates an association in a given project and location. See https://google.aip.dev/133 (at https://google.aip.dev/133).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateMirroringEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateMirroringEndpointGroupAssociationRequest.
}
op, err := c.CreateMirroringEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) CreateMirroringEndpointGroupAssociationOperation ¶
func (c *MirroringClient) CreateMirroringEndpointGroupAssociationOperation(name string) *CreateMirroringEndpointGroupAssociationOperation
CreateMirroringEndpointGroupAssociationOperation returns a new CreateMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created CreateMirroringEndpointGroupAssociationOperation, possibly from a different process.
func (*MirroringClient) CreateMirroringEndpointGroupOperation ¶
func (c *MirroringClient) CreateMirroringEndpointGroupOperation(name string) *CreateMirroringEndpointGroupOperation
CreateMirroringEndpointGroupOperation returns a new CreateMirroringEndpointGroupOperation from a given name. The name must be that of a previously created CreateMirroringEndpointGroupOperation, possibly from a different process.
func (*MirroringClient) DeleteMirroringDeployment ¶
func (c *MirroringClient) DeleteMirroringDeployment(ctx context.Context, req *networksecuritypb.DeleteMirroringDeploymentRequest, opts ...gax.CallOption) (*DeleteMirroringDeploymentOperation, error)
DeleteMirroringDeployment deletes a deployment. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteMirroringDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringDeploymentRequest.
}
op, err := c.DeleteMirroringDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) DeleteMirroringDeploymentGroup ¶
func (c *MirroringClient) DeleteMirroringDeploymentGroup(ctx context.Context, req *networksecuritypb.DeleteMirroringDeploymentGroupRequest, opts ...gax.CallOption) (*DeleteMirroringDeploymentGroupOperation, error)
DeleteMirroringDeploymentGroup deletes a deployment group. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteMirroringDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringDeploymentGroupRequest.
}
op, err := c.DeleteMirroringDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) DeleteMirroringDeploymentGroupOperation ¶
func (c *MirroringClient) DeleteMirroringDeploymentGroupOperation(name string) *DeleteMirroringDeploymentGroupOperation
DeleteMirroringDeploymentGroupOperation returns a new DeleteMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created DeleteMirroringDeploymentGroupOperation, possibly from a different process.
func (*MirroringClient) DeleteMirroringDeploymentOperation ¶
func (c *MirroringClient) DeleteMirroringDeploymentOperation(name string) *DeleteMirroringDeploymentOperation
DeleteMirroringDeploymentOperation returns a new DeleteMirroringDeploymentOperation from a given name. The name must be that of a previously created DeleteMirroringDeploymentOperation, possibly from a different process.
func (*MirroringClient) DeleteMirroringEndpointGroup ¶
func (c *MirroringClient) DeleteMirroringEndpointGroup(ctx context.Context, req *networksecuritypb.DeleteMirroringEndpointGroupRequest, opts ...gax.CallOption) (*DeleteMirroringEndpointGroupOperation, error)
DeleteMirroringEndpointGroup deletes an endpoint group. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteMirroringEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringEndpointGroupRequest.
}
op, err := c.DeleteMirroringEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) DeleteMirroringEndpointGroupAssociation ¶
func (c *MirroringClient) DeleteMirroringEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.DeleteMirroringEndpointGroupAssociationRequest, opts ...gax.CallOption) (*DeleteMirroringEndpointGroupAssociationOperation, error)
DeleteMirroringEndpointGroupAssociation deletes an association. See https://google.aip.dev/135 (at https://google.aip.dev/135).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteMirroringEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteMirroringEndpointGroupAssociationRequest.
}
op, err := c.DeleteMirroringEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) DeleteMirroringEndpointGroupAssociationOperation ¶
func (c *MirroringClient) DeleteMirroringEndpointGroupAssociationOperation(name string) *DeleteMirroringEndpointGroupAssociationOperation
DeleteMirroringEndpointGroupAssociationOperation returns a new DeleteMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created DeleteMirroringEndpointGroupAssociationOperation, possibly from a different process.
func (*MirroringClient) DeleteMirroringEndpointGroupOperation ¶
func (c *MirroringClient) DeleteMirroringEndpointGroupOperation(name string) *DeleteMirroringEndpointGroupOperation
DeleteMirroringEndpointGroupOperation returns a new DeleteMirroringEndpointGroupOperation from a given name. The name must be that of a previously created DeleteMirroringEndpointGroupOperation, possibly from a different process.
func (*MirroringClient) DeleteOperation ¶
func (c *MirroringClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*MirroringClient) GetIamPolicy ¶
func (c *MirroringClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetLocation ¶
func (c *MirroringClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetMirroringDeployment ¶
func (c *MirroringClient) GetMirroringDeployment(ctx context.Context, req *networksecuritypb.GetMirroringDeploymentRequest, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
GetMirroringDeployment gets a specific deployment. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetMirroringDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringDeploymentRequest.
}
resp, err := c.GetMirroringDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetMirroringDeploymentGroup ¶
func (c *MirroringClient) GetMirroringDeploymentGroup(ctx context.Context, req *networksecuritypb.GetMirroringDeploymentGroupRequest, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
GetMirroringDeploymentGroup gets a specific deployment group. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetMirroringDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringDeploymentGroupRequest.
}
resp, err := c.GetMirroringDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetMirroringEndpointGroup ¶
func (c *MirroringClient) GetMirroringEndpointGroup(ctx context.Context, req *networksecuritypb.GetMirroringEndpointGroupRequest, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
GetMirroringEndpointGroup gets a specific endpoint group. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetMirroringEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringEndpointGroupRequest.
}
resp, err := c.GetMirroringEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetMirroringEndpointGroupAssociation ¶
func (c *MirroringClient) GetMirroringEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.GetMirroringEndpointGroupAssociationRequest, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
GetMirroringEndpointGroupAssociation gets a specific association. See https://google.aip.dev/131 (at https://google.aip.dev/131).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetMirroringEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetMirroringEndpointGroupAssociationRequest.
}
resp, err := c.GetMirroringEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) GetOperation ¶
func (c *MirroringClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) ListLocations ¶
func (c *MirroringClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) ListMirroringDeploymentGroups ¶
func (c *MirroringClient) ListMirroringDeploymentGroups(ctx context.Context, req *networksecuritypb.ListMirroringDeploymentGroupsRequest, opts ...gax.CallOption) *MirroringDeploymentGroupIterator
ListMirroringDeploymentGroups lists deployment groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringDeploymentGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentGroupsRequest.
}
it := c.ListMirroringDeploymentGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListMirroringDeploymentGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringDeploymentGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentGroupsRequest.
}
for resp, err := range c.ListMirroringDeploymentGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) ListMirroringDeployments ¶
func (c *MirroringClient) ListMirroringDeployments(ctx context.Context, req *networksecuritypb.ListMirroringDeploymentsRequest, opts ...gax.CallOption) *MirroringDeploymentIterator
ListMirroringDeployments lists deployments in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringDeploymentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentsRequest.
}
it := c.ListMirroringDeployments(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListMirroringDeploymentsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringDeploymentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringDeploymentsRequest.
}
for resp, err := range c.ListMirroringDeployments(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) ListMirroringEndpointGroupAssociations ¶
func (c *MirroringClient) ListMirroringEndpointGroupAssociations(ctx context.Context, req *networksecuritypb.ListMirroringEndpointGroupAssociationsRequest, opts ...gax.CallOption) *MirroringEndpointGroupAssociationIterator
ListMirroringEndpointGroupAssociations lists associations in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringEndpointGroupAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupAssociationsRequest.
}
it := c.ListMirroringEndpointGroupAssociations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListMirroringEndpointGroupAssociationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringEndpointGroupAssociationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupAssociationsRequest.
}
for resp, err := range c.ListMirroringEndpointGroupAssociations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) ListMirroringEndpointGroups ¶
func (c *MirroringClient) ListMirroringEndpointGroups(ctx context.Context, req *networksecuritypb.ListMirroringEndpointGroupsRequest, opts ...gax.CallOption) *MirroringEndpointGroupIterator
ListMirroringEndpointGroups lists endpoint groups in a given project and location. See https://google.aip.dev/132 (at https://google.aip.dev/132).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringEndpointGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupsRequest.
}
it := c.ListMirroringEndpointGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListMirroringEndpointGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListMirroringEndpointGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListMirroringEndpointGroupsRequest.
}
for resp, err := range c.ListMirroringEndpointGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) ListOperations ¶
func (c *MirroringClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*MirroringClient) SetIamPolicy ¶
func (c *MirroringClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) TestIamPermissions ¶
func (c *MirroringClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) UpdateMirroringDeployment ¶
func (c *MirroringClient) UpdateMirroringDeployment(ctx context.Context, req *networksecuritypb.UpdateMirroringDeploymentRequest, opts ...gax.CallOption) (*UpdateMirroringDeploymentOperation, error)
UpdateMirroringDeployment updates a deployment. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateMirroringDeploymentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringDeploymentRequest.
}
op, err := c.UpdateMirroringDeployment(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) UpdateMirroringDeploymentGroup ¶
func (c *MirroringClient) UpdateMirroringDeploymentGroup(ctx context.Context, req *networksecuritypb.UpdateMirroringDeploymentGroupRequest, opts ...gax.CallOption) (*UpdateMirroringDeploymentGroupOperation, error)
UpdateMirroringDeploymentGroup updates a deployment group. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateMirroringDeploymentGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringDeploymentGroupRequest.
}
op, err := c.UpdateMirroringDeploymentGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) UpdateMirroringDeploymentGroupOperation ¶
func (c *MirroringClient) UpdateMirroringDeploymentGroupOperation(name string) *UpdateMirroringDeploymentGroupOperation
UpdateMirroringDeploymentGroupOperation returns a new UpdateMirroringDeploymentGroupOperation from a given name. The name must be that of a previously created UpdateMirroringDeploymentGroupOperation, possibly from a different process.
func (*MirroringClient) UpdateMirroringDeploymentOperation ¶
func (c *MirroringClient) UpdateMirroringDeploymentOperation(name string) *UpdateMirroringDeploymentOperation
UpdateMirroringDeploymentOperation returns a new UpdateMirroringDeploymentOperation from a given name. The name must be that of a previously created UpdateMirroringDeploymentOperation, possibly from a different process.
func (*MirroringClient) UpdateMirroringEndpointGroup ¶
func (c *MirroringClient) UpdateMirroringEndpointGroup(ctx context.Context, req *networksecuritypb.UpdateMirroringEndpointGroupRequest, opts ...gax.CallOption) (*UpdateMirroringEndpointGroupOperation, error)
UpdateMirroringEndpointGroup updates an endpoint group. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateMirroringEndpointGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringEndpointGroupRequest.
}
op, err := c.UpdateMirroringEndpointGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) UpdateMirroringEndpointGroupAssociation ¶
func (c *MirroringClient) UpdateMirroringEndpointGroupAssociation(ctx context.Context, req *networksecuritypb.UpdateMirroringEndpointGroupAssociationRequest, opts ...gax.CallOption) (*UpdateMirroringEndpointGroupAssociationOperation, error)
UpdateMirroringEndpointGroupAssociation updates an association. See https://google.aip.dev/134 (at https://google.aip.dev/134).
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewMirroringClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateMirroringEndpointGroupAssociationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateMirroringEndpointGroupAssociationRequest.
}
op, err := c.UpdateMirroringEndpointGroupAssociation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*MirroringClient) UpdateMirroringEndpointGroupAssociationOperation ¶
func (c *MirroringClient) UpdateMirroringEndpointGroupAssociationOperation(name string) *UpdateMirroringEndpointGroupAssociationOperation
UpdateMirroringEndpointGroupAssociationOperation returns a new UpdateMirroringEndpointGroupAssociationOperation from a given name. The name must be that of a previously created UpdateMirroringEndpointGroupAssociationOperation, possibly from a different process.
func (*MirroringClient) UpdateMirroringEndpointGroupOperation ¶
func (c *MirroringClient) UpdateMirroringEndpointGroupOperation(name string) *UpdateMirroringEndpointGroupOperation
UpdateMirroringEndpointGroupOperation returns a new UpdateMirroringEndpointGroupOperation from a given name. The name must be that of a previously created UpdateMirroringEndpointGroupOperation, possibly from a different process.
type MirroringDeploymentGroupIterator ¶
type MirroringDeploymentGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.MirroringDeploymentGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
MirroringDeploymentGroupIterator manages a stream of *networksecuritypb.MirroringDeploymentGroup.
func (*MirroringDeploymentGroupIterator) All ¶
func (it *MirroringDeploymentGroupIterator) All() iter.Seq2[*networksecuritypb.MirroringDeploymentGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MirroringDeploymentGroupIterator) Next ¶
func (it *MirroringDeploymentGroupIterator) Next() (*networksecuritypb.MirroringDeploymentGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*MirroringDeploymentGroupIterator) PageInfo ¶
func (it *MirroringDeploymentGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MirroringDeploymentIterator ¶
type MirroringDeploymentIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.MirroringDeployment, nextPageToken string, err error)
// contains filtered or unexported fields
}
MirroringDeploymentIterator manages a stream of *networksecuritypb.MirroringDeployment.
func (*MirroringDeploymentIterator) All ¶
func (it *MirroringDeploymentIterator) All() iter.Seq2[*networksecuritypb.MirroringDeployment, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MirroringDeploymentIterator) Next ¶
func (it *MirroringDeploymentIterator) Next() (*networksecuritypb.MirroringDeployment, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*MirroringDeploymentIterator) PageInfo ¶
func (it *MirroringDeploymentIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MirroringEndpointGroupAssociationIterator ¶
type MirroringEndpointGroupAssociationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.MirroringEndpointGroupAssociation, nextPageToken string, err error)
// contains filtered or unexported fields
}
MirroringEndpointGroupAssociationIterator manages a stream of *networksecuritypb.MirroringEndpointGroupAssociation.
func (*MirroringEndpointGroupAssociationIterator) All ¶
func (it *MirroringEndpointGroupAssociationIterator) All() iter.Seq2[*networksecuritypb.MirroringEndpointGroupAssociation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MirroringEndpointGroupAssociationIterator) Next ¶
func (it *MirroringEndpointGroupAssociationIterator) Next() (*networksecuritypb.MirroringEndpointGroupAssociation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*MirroringEndpointGroupAssociationIterator) PageInfo ¶
func (it *MirroringEndpointGroupAssociationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type MirroringEndpointGroupIterator ¶
type MirroringEndpointGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.MirroringEndpointGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
MirroringEndpointGroupIterator manages a stream of *networksecuritypb.MirroringEndpointGroup.
func (*MirroringEndpointGroupIterator) All ¶
func (it *MirroringEndpointGroupIterator) All() iter.Seq2[*networksecuritypb.MirroringEndpointGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*MirroringEndpointGroupIterator) Next ¶
func (it *MirroringEndpointGroupIterator) Next() (*networksecuritypb.MirroringEndpointGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*MirroringEndpointGroupIterator) PageInfo ¶
func (it *MirroringEndpointGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶
type OperationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
// contains filtered or unexported fields
}
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OrganizationAddressGroupCallOptions ¶
type OrganizationAddressGroupCallOptions struct {
ListAddressGroups []gax.CallOption
GetAddressGroup []gax.CallOption
CreateAddressGroup []gax.CallOption
UpdateAddressGroup []gax.CallOption
AddAddressGroupItems []gax.CallOption
RemoveAddressGroupItems []gax.CallOption
CloneAddressGroupItems []gax.CallOption
DeleteAddressGroup []gax.CallOption
ListAddressGroupReferences []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
OrganizationAddressGroupCallOptions contains the retry settings for each method of OrganizationAddressGroupClient.
type OrganizationAddressGroupClient ¶
type OrganizationAddressGroupClient struct {
// The call options for this service.
CallOptions *OrganizationAddressGroupCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
OrganizationAddressGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.
func NewOrganizationAddressGroupClient ¶
func NewOrganizationAddressGroupClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationAddressGroupClient, error)
NewOrganizationAddressGroupClient creates a new organization address group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewOrganizationAddressGroupRESTClient ¶
func NewOrganizationAddressGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationAddressGroupClient, error)
NewOrganizationAddressGroupRESTClient creates a new organization address group service rest client.
Organization AddressGroup is created under organization. Requests against Organization AddressGroup will use project from request credential for activation/quota/visibility check.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*OrganizationAddressGroupClient) AddAddressGroupItems ¶
func (c *OrganizationAddressGroupClient) AddAddressGroupItems(ctx context.Context, req *networksecuritypb.AddAddressGroupItemsRequest, opts ...gax.CallOption) (*AddAddressGroupItemsOperation, error)
AddAddressGroupItems adds items to an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.AddAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#AddAddressGroupItemsRequest.
}
op, err := c.AddAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) AddAddressGroupItemsOperation ¶
func (c *OrganizationAddressGroupClient) AddAddressGroupItemsOperation(name string) *AddAddressGroupItemsOperation
AddAddressGroupItemsOperation returns a new AddAddressGroupItemsOperation from a given name. The name must be that of a previously created AddAddressGroupItemsOperation, possibly from a different process.
func (*OrganizationAddressGroupClient) CancelOperation ¶
func (c *OrganizationAddressGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationAddressGroupClient) CloneAddressGroupItems ¶
func (c *OrganizationAddressGroupClient) CloneAddressGroupItems(ctx context.Context, req *networksecuritypb.CloneAddressGroupItemsRequest, opts ...gax.CallOption) (*CloneAddressGroupItemsOperation, error)
CloneAddressGroupItems clones items from one address group to another.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CloneAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CloneAddressGroupItemsRequest.
}
op, err := c.CloneAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) CloneAddressGroupItemsOperation ¶
func (c *OrganizationAddressGroupClient) CloneAddressGroupItemsOperation(name string) *CloneAddressGroupItemsOperation
CloneAddressGroupItemsOperation returns a new CloneAddressGroupItemsOperation from a given name. The name must be that of a previously created CloneAddressGroupItemsOperation, possibly from a different process.
func (*OrganizationAddressGroupClient) Close ¶
func (c *OrganizationAddressGroupClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*OrganizationAddressGroupClient) Connection
deprecated
func (c *OrganizationAddressGroupClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*OrganizationAddressGroupClient) CreateAddressGroup ¶
func (c *OrganizationAddressGroupClient) CreateAddressGroup(ctx context.Context, req *networksecuritypb.CreateAddressGroupRequest, opts ...gax.CallOption) (*CreateAddressGroupOperation, error)
CreateAddressGroup creates a new address group in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateAddressGroupRequest.
}
op, err := c.CreateAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) CreateAddressGroupOperation ¶
func (c *OrganizationAddressGroupClient) CreateAddressGroupOperation(name string) *CreateAddressGroupOperation
CreateAddressGroupOperation returns a new CreateAddressGroupOperation from a given name. The name must be that of a previously created CreateAddressGroupOperation, possibly from a different process.
func (*OrganizationAddressGroupClient) DeleteAddressGroup ¶
func (c *OrganizationAddressGroupClient) DeleteAddressGroup(ctx context.Context, req *networksecuritypb.DeleteAddressGroupRequest, opts ...gax.CallOption) (*DeleteAddressGroupOperation, error)
DeleteAddressGroup deletes an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteAddressGroupRequest.
}
op, err := c.DeleteAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationAddressGroupClient) DeleteAddressGroupOperation ¶
func (c *OrganizationAddressGroupClient) DeleteAddressGroupOperation(name string) *DeleteAddressGroupOperation
DeleteAddressGroupOperation returns a new DeleteAddressGroupOperation from a given name. The name must be that of a previously created DeleteAddressGroupOperation, possibly from a different process.
func (*OrganizationAddressGroupClient) DeleteOperation ¶
func (c *OrganizationAddressGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationAddressGroupClient) GetAddressGroup ¶
func (c *OrganizationAddressGroupClient) GetAddressGroup(ctx context.Context, req *networksecuritypb.GetAddressGroupRequest, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
GetAddressGroup gets details of a single address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetAddressGroupRequest.
}
resp, err := c.GetAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) GetIamPolicy ¶
func (c *OrganizationAddressGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) GetLocation ¶
func (c *OrganizationAddressGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) GetOperation ¶
func (c *OrganizationAddressGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) ListAddressGroupReferences ¶
func (c *OrganizationAddressGroupClient) ListAddressGroupReferences(ctx context.Context, req *networksecuritypb.ListAddressGroupReferencesRequest, opts ...gax.CallOption) *ListAddressGroupReferencesResponse_AddressGroupReferenceIterator
ListAddressGroupReferences lists references of an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupReferencesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
}
it := c.ListAddressGroupReferences(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAddressGroupReferencesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupReferencesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupReferencesRequest.
}
for resp, err := range c.ListAddressGroupReferences(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationAddressGroupClient) ListAddressGroups ¶
func (c *OrganizationAddressGroupClient) ListAddressGroups(ctx context.Context, req *networksecuritypb.ListAddressGroupsRequest, opts ...gax.CallOption) *AddressGroupIterator
ListAddressGroups lists address groups in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
}
it := c.ListAddressGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListAddressGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListAddressGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListAddressGroupsRequest.
}
for resp, err := range c.ListAddressGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationAddressGroupClient) ListLocations ¶
func (c *OrganizationAddressGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationAddressGroupClient) ListOperations ¶
func (c *OrganizationAddressGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationAddressGroupClient) RemoveAddressGroupItems ¶
func (c *OrganizationAddressGroupClient) RemoveAddressGroupItems(ctx context.Context, req *networksecuritypb.RemoveAddressGroupItemsRequest, opts ...gax.CallOption) (*RemoveAddressGroupItemsOperation, error)
RemoveAddressGroupItems removes items from an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.RemoveAddressGroupItemsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#RemoveAddressGroupItemsRequest.
}
op, err := c.RemoveAddressGroupItems(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) RemoveAddressGroupItemsOperation ¶
func (c *OrganizationAddressGroupClient) RemoveAddressGroupItemsOperation(name string) *RemoveAddressGroupItemsOperation
RemoveAddressGroupItemsOperation returns a new RemoveAddressGroupItemsOperation from a given name. The name must be that of a previously created RemoveAddressGroupItemsOperation, possibly from a different process.
func (*OrganizationAddressGroupClient) SetIamPolicy ¶
func (c *OrganizationAddressGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) TestIamPermissions ¶
func (c *OrganizationAddressGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) UpdateAddressGroup ¶
func (c *OrganizationAddressGroupClient) UpdateAddressGroup(ctx context.Context, req *networksecuritypb.UpdateAddressGroupRequest, opts ...gax.CallOption) (*UpdateAddressGroupOperation, error)
UpdateAddressGroup updates parameters of an address group.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationAddressGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateAddressGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateAddressGroupRequest.
}
op, err := c.UpdateAddressGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationAddressGroupClient) UpdateAddressGroupOperation ¶
func (c *OrganizationAddressGroupClient) UpdateAddressGroupOperation(name string) *UpdateAddressGroupOperation
UpdateAddressGroupOperation returns a new UpdateAddressGroupOperation from a given name. The name must be that of a previously created UpdateAddressGroupOperation, possibly from a different process.
type OrganizationSecurityProfileGroupCallOptions ¶
type OrganizationSecurityProfileGroupCallOptions struct {
ListSecurityProfileGroups []gax.CallOption
GetSecurityProfileGroup []gax.CallOption
CreateSecurityProfileGroup []gax.CallOption
UpdateSecurityProfileGroup []gax.CallOption
DeleteSecurityProfileGroup []gax.CallOption
ListSecurityProfiles []gax.CallOption
GetSecurityProfile []gax.CallOption
CreateSecurityProfile []gax.CallOption
UpdateSecurityProfile []gax.CallOption
DeleteSecurityProfile []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
OrganizationSecurityProfileGroupCallOptions contains the retry settings for each method of OrganizationSecurityProfileGroupClient.
type OrganizationSecurityProfileGroupClient ¶
type OrganizationSecurityProfileGroupClient struct {
// The call options for this service.
CallOptions *OrganizationSecurityProfileGroupCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
OrganizationSecurityProfileGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Organization SecurityProfileGroup is created under organization.
func NewOrganizationSecurityProfileGroupClient ¶
func NewOrganizationSecurityProfileGroupClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationSecurityProfileGroupClient, error)
NewOrganizationSecurityProfileGroupClient creates a new organization security profile group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Organization SecurityProfileGroup is created under organization.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewOrganizationSecurityProfileGroupRESTClient ¶
func NewOrganizationSecurityProfileGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*OrganizationSecurityProfileGroupClient, error)
NewOrganizationSecurityProfileGroupRESTClient creates a new organization security profile group service rest client.
Organization SecurityProfileGroup is created under organization.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*OrganizationSecurityProfileGroupClient) CancelOperation ¶
func (c *OrganizationSecurityProfileGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) Close ¶
func (c *OrganizationSecurityProfileGroupClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*OrganizationSecurityProfileGroupClient) Connection
deprecated
func (c *OrganizationSecurityProfileGroupClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfile ¶
func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfile(ctx context.Context, req *networksecuritypb.CreateSecurityProfileRequest, opts ...gax.CallOption) (*CreateSecurityProfileOperation, error)
CreateSecurityProfile creates a new SecurityProfile in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileRequest.
}
op, err := c.CreateSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroup ¶
func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.CreateSecurityProfileGroupRequest, opts ...gax.CallOption) (*CreateSecurityProfileGroupOperation, error)
CreateSecurityProfileGroup creates a new SecurityProfileGroup in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileGroupRequest.
}
op, err := c.CreateSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroupOperation ¶
func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation
CreateSecurityProfileGroupOperation returns a new CreateSecurityProfileGroupOperation from a given name. The name must be that of a previously created CreateSecurityProfileGroupOperation, possibly from a different process.
func (*OrganizationSecurityProfileGroupClient) CreateSecurityProfileOperation ¶
func (c *OrganizationSecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation
CreateSecurityProfileOperation returns a new CreateSecurityProfileOperation from a given name. The name must be that of a previously created CreateSecurityProfileOperation, possibly from a different process.
func (*OrganizationSecurityProfileGroupClient) DeleteOperation ¶
func (c *OrganizationSecurityProfileGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfile ¶
func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfile(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileRequest, opts ...gax.CallOption) (*DeleteSecurityProfileOperation, error)
DeleteSecurityProfile deletes a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileRequest.
}
op, err := c.DeleteSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroup ¶
func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroup(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileGroupRequest, opts ...gax.CallOption) (*DeleteSecurityProfileGroupOperation, error)
DeleteSecurityProfileGroup deletes a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileGroupRequest.
}
op, err := c.DeleteSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroupOperation ¶
func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation
DeleteSecurityProfileGroupOperation returns a new DeleteSecurityProfileGroupOperation from a given name. The name must be that of a previously created DeleteSecurityProfileGroupOperation, possibly from a different process.
func (*OrganizationSecurityProfileGroupClient) DeleteSecurityProfileOperation ¶
func (c *OrganizationSecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation
DeleteSecurityProfileOperation returns a new DeleteSecurityProfileOperation from a given name. The name must be that of a previously created DeleteSecurityProfileOperation, possibly from a different process.
func (*OrganizationSecurityProfileGroupClient) GetIamPolicy ¶
func (c *OrganizationSecurityProfileGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) GetLocation ¶
func (c *OrganizationSecurityProfileGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) GetOperation ¶
func (c *OrganizationSecurityProfileGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) GetSecurityProfile ¶
func (c *OrganizationSecurityProfileGroupClient) GetSecurityProfile(ctx context.Context, req *networksecuritypb.GetSecurityProfileRequest, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
GetSecurityProfile gets details of a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileRequest.
}
resp, err := c.GetSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) GetSecurityProfileGroup ¶
func (c *OrganizationSecurityProfileGroupClient) GetSecurityProfileGroup(ctx context.Context, req *networksecuritypb.GetSecurityProfileGroupRequest, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
GetSecurityProfileGroup gets details of a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileGroupRequest.
}
resp, err := c.GetSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) ListLocations ¶
func (c *OrganizationSecurityProfileGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) ListOperations ¶
func (c *OrganizationSecurityProfileGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) ListSecurityProfileGroups ¶
func (c *OrganizationSecurityProfileGroupClient) ListSecurityProfileGroups(ctx context.Context, req *networksecuritypb.ListSecurityProfileGroupsRequest, opts ...gax.CallOption) *SecurityProfileGroupIterator
ListSecurityProfileGroups lists SecurityProfileGroups in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfileGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
}
it := c.ListSecurityProfileGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSecurityProfileGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfileGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
}
for resp, err := range c.ListSecurityProfileGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) ListSecurityProfiles ¶
func (c *OrganizationSecurityProfileGroupClient) ListSecurityProfiles(ctx context.Context, req *networksecuritypb.ListSecurityProfilesRequest, opts ...gax.CallOption) *SecurityProfileIterator
ListSecurityProfiles lists SecurityProfiles in a given organization and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfilesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
}
it := c.ListSecurityProfiles(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSecurityProfilesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfilesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
}
for resp, err := range c.ListSecurityProfiles(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*OrganizationSecurityProfileGroupClient) SetIamPolicy ¶
func (c *OrganizationSecurityProfileGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) TestIamPermissions ¶
func (c *OrganizationSecurityProfileGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfile ¶
func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfile(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileRequest, opts ...gax.CallOption) (*UpdateSecurityProfileOperation, error)
UpdateSecurityProfile updates the parameters of a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileRequest.
}
op, err := c.UpdateSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroup ¶
func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileGroupRequest, opts ...gax.CallOption) (*UpdateSecurityProfileGroupOperation, error)
UpdateSecurityProfileGroup updates the parameters of a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewOrganizationSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileGroupRequest.
}
op, err := c.UpdateSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroupOperation ¶
func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation
UpdateSecurityProfileGroupOperation returns a new UpdateSecurityProfileGroupOperation from a given name. The name must be that of a previously created UpdateSecurityProfileGroupOperation, possibly from a different process.
func (*OrganizationSecurityProfileGroupClient) UpdateSecurityProfileOperation ¶
func (c *OrganizationSecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation
UpdateSecurityProfileOperation returns a new UpdateSecurityProfileOperation from a given name. The name must be that of a previously created UpdateSecurityProfileOperation, possibly from a different process.
type RemoveAddressGroupItemsOperation ¶
type RemoveAddressGroupItemsOperation struct {
// contains filtered or unexported fields
}
RemoveAddressGroupItemsOperation manages a long-running operation from RemoveAddressGroupItems.
func (*RemoveAddressGroupItemsOperation) Done ¶
func (op *RemoveAddressGroupItemsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*RemoveAddressGroupItemsOperation) Metadata ¶
func (op *RemoveAddressGroupItemsOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*RemoveAddressGroupItemsOperation) Name ¶
func (op *RemoveAddressGroupItemsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*RemoveAddressGroupItemsOperation) Poll ¶
func (op *RemoveAddressGroupItemsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*RemoveAddressGroupItemsOperation) Wait ¶
func (op *RemoveAddressGroupItemsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type SACAttachmentIterator ¶
type SACAttachmentIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.SACAttachment, nextPageToken string, err error)
// contains filtered or unexported fields
}
SACAttachmentIterator manages a stream of *networksecuritypb.SACAttachment.
func (*SACAttachmentIterator) All ¶
func (it *SACAttachmentIterator) All() iter.Seq2[*networksecuritypb.SACAttachment, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SACAttachmentIterator) Next ¶
func (it *SACAttachmentIterator) Next() (*networksecuritypb.SACAttachment, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SACAttachmentIterator) PageInfo ¶
func (it *SACAttachmentIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SACRealmIterator ¶
type SACRealmIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.SACRealm, nextPageToken string, err error)
// contains filtered or unexported fields
}
SACRealmIterator manages a stream of *networksecuritypb.SACRealm.
func (*SACRealmIterator) All ¶
func (it *SACRealmIterator) All() iter.Seq2[*networksecuritypb.SACRealm, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SACRealmIterator) Next ¶
func (it *SACRealmIterator) Next() (*networksecuritypb.SACRealm, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SACRealmIterator) PageInfo ¶
func (it *SACRealmIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SSERealmCallOptions ¶
type SSERealmCallOptions struct {
ListSACRealms []gax.CallOption
GetSACRealm []gax.CallOption
CreateSACRealm []gax.CallOption
DeleteSACRealm []gax.CallOption
ListSACAttachments []gax.CallOption
GetSACAttachment []gax.CallOption
CreateSACAttachment []gax.CallOption
DeleteSACAttachment []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
SSERealmCallOptions contains the retry settings for each method of SSERealmClient.
type SSERealmClient ¶
type SSERealmClient struct {
// The call options for this service.
CallOptions *SSERealmCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
SSERealmClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Service describing handlers for resources
func NewSSERealmClient ¶
func NewSSERealmClient(ctx context.Context, opts ...option.ClientOption) (*SSERealmClient, error)
NewSSERealmClient creates a new sse realm service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Service describing handlers for resources
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewSSERealmRESTClient ¶
func NewSSERealmRESTClient(ctx context.Context, opts ...option.ClientOption) (*SSERealmClient, error)
NewSSERealmRESTClient creates a new sse realm service rest client.
Service describing handlers for resources
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*SSERealmClient) CancelOperation ¶
func (c *SSERealmClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SSERealmClient) Close ¶
func (c *SSERealmClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*SSERealmClient) Connection
deprecated
func (c *SSERealmClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*SSERealmClient) CreateSACAttachment ¶
func (c *SSERealmClient) CreateSACAttachment(ctx context.Context, req *networksecuritypb.CreateSACAttachmentRequest, opts ...gax.CallOption) (*CreateSACAttachmentOperation, error)
CreateSACAttachment creates a new SACAttachment in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSACAttachmentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSACAttachmentRequest.
}
op, err := c.CreateSACAttachment(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) CreateSACAttachmentOperation ¶
func (c *SSERealmClient) CreateSACAttachmentOperation(name string) *CreateSACAttachmentOperation
CreateSACAttachmentOperation returns a new CreateSACAttachmentOperation from a given name. The name must be that of a previously created CreateSACAttachmentOperation, possibly from a different process.
func (*SSERealmClient) CreateSACRealm ¶
func (c *SSERealmClient) CreateSACRealm(ctx context.Context, req *networksecuritypb.CreateSACRealmRequest, opts ...gax.CallOption) (*CreateSACRealmOperation, error)
CreateSACRealm creates a new SACRealm in a given project.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSACRealmRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSACRealmRequest.
}
op, err := c.CreateSACRealm(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) CreateSACRealmOperation ¶
func (c *SSERealmClient) CreateSACRealmOperation(name string) *CreateSACRealmOperation
CreateSACRealmOperation returns a new CreateSACRealmOperation from a given name. The name must be that of a previously created CreateSACRealmOperation, possibly from a different process.
func (*SSERealmClient) DeleteOperation ¶
func (c *SSERealmClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SSERealmClient) DeleteSACAttachment ¶
func (c *SSERealmClient) DeleteSACAttachment(ctx context.Context, req *networksecuritypb.DeleteSACAttachmentRequest, opts ...gax.CallOption) (*DeleteSACAttachmentOperation, error)
DeleteSACAttachment deletes the specified attachment.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSACAttachmentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSACAttachmentRequest.
}
op, err := c.DeleteSACAttachment(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SSERealmClient) DeleteSACAttachmentOperation ¶
func (c *SSERealmClient) DeleteSACAttachmentOperation(name string) *DeleteSACAttachmentOperation
DeleteSACAttachmentOperation returns a new DeleteSACAttachmentOperation from a given name. The name must be that of a previously created DeleteSACAttachmentOperation, possibly from a different process.
func (*SSERealmClient) DeleteSACRealm ¶
func (c *SSERealmClient) DeleteSACRealm(ctx context.Context, req *networksecuritypb.DeleteSACRealmRequest, opts ...gax.CallOption) (*DeleteSACRealmOperation, error)
DeleteSACRealm deletes the specified realm.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSACRealmRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSACRealmRequest.
}
op, err := c.DeleteSACRealm(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SSERealmClient) DeleteSACRealmOperation ¶
func (c *SSERealmClient) DeleteSACRealmOperation(name string) *DeleteSACRealmOperation
DeleteSACRealmOperation returns a new DeleteSACRealmOperation from a given name. The name must be that of a previously created DeleteSACRealmOperation, possibly from a different process.
func (*SSERealmClient) GetIamPolicy ¶
func (c *SSERealmClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) GetLocation ¶
func (c *SSERealmClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) GetOperation ¶
func (c *SSERealmClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) GetSACAttachment ¶
func (c *SSERealmClient) GetSACAttachment(ctx context.Context, req *networksecuritypb.GetSACAttachmentRequest, opts ...gax.CallOption) (*networksecuritypb.SACAttachment, error)
GetSACAttachment returns the specified attachment.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSACAttachmentRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSACAttachmentRequest.
}
resp, err := c.GetSACAttachment(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) GetSACRealm ¶
func (c *SSERealmClient) GetSACRealm(ctx context.Context, req *networksecuritypb.GetSACRealmRequest, opts ...gax.CallOption) (*networksecuritypb.SACRealm, error)
GetSACRealm returns the specified realm.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSACRealmRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSACRealmRequest.
}
resp, err := c.GetSACRealm(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) ListLocations ¶
func (c *SSERealmClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SSERealmClient) ListOperations ¶
func (c *SSERealmClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SSERealmClient) ListSACAttachments ¶
func (c *SSERealmClient) ListSACAttachments(ctx context.Context, req *networksecuritypb.ListSACAttachmentsRequest, opts ...gax.CallOption) *SACAttachmentIterator
ListSACAttachments lists SACAttachments in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSACAttachmentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACAttachmentsRequest.
}
it := c.ListSACAttachments(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSACAttachmentsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSACAttachmentsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACAttachmentsRequest.
}
for resp, err := range c.ListSACAttachments(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SSERealmClient) ListSACRealms ¶
func (c *SSERealmClient) ListSACRealms(ctx context.Context, req *networksecuritypb.ListSACRealmsRequest, opts ...gax.CallOption) *SACRealmIterator
ListSACRealms lists SACRealms in a given project.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSACRealmsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACRealmsRequest.
}
it := c.ListSACRealms(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSACRealmsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSACRealmsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSACRealmsRequest.
}
for resp, err := range c.ListSACRealms(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SSERealmClient) SetIamPolicy ¶
func (c *SSERealmClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SSERealmClient) TestIamPermissions ¶
func (c *SSERealmClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSSERealmClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
type SecurityProfileGroupCallOptions ¶
type SecurityProfileGroupCallOptions struct {
ListSecurityProfileGroups []gax.CallOption
GetSecurityProfileGroup []gax.CallOption
CreateSecurityProfileGroup []gax.CallOption
UpdateSecurityProfileGroup []gax.CallOption
DeleteSecurityProfileGroup []gax.CallOption
ListSecurityProfiles []gax.CallOption
GetSecurityProfile []gax.CallOption
CreateSecurityProfile []gax.CallOption
UpdateSecurityProfile []gax.CallOption
DeleteSecurityProfile []gax.CallOption
GetLocation []gax.CallOption
ListLocations []gax.CallOption
GetIamPolicy []gax.CallOption
SetIamPolicy []gax.CallOption
TestIamPermissions []gax.CallOption
CancelOperation []gax.CallOption
DeleteOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
SecurityProfileGroupCallOptions contains the retry settings for each method of SecurityProfileGroupClient.
type SecurityProfileGroupClient ¶
type SecurityProfileGroupClient struct {
// The call options for this service.
CallOptions *SecurityProfileGroupCallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
SecurityProfileGroupClient is a client for interacting with Network Security API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.
func NewSecurityProfileGroupClient ¶
func NewSecurityProfileGroupClient(ctx context.Context, opts ...option.ClientOption) (*SecurityProfileGroupClient, error)
NewSecurityProfileGroupClient creates a new security profile group service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func NewSecurityProfileGroupRESTClient ¶
func NewSecurityProfileGroupRESTClient(ctx context.Context, opts ...option.ClientOption) (*SecurityProfileGroupClient, error)
NewSecurityProfileGroupRESTClient creates a new security profile group service rest client.
SecurityProfileGroup is a resource that defines an action for specific threat signatures or severity levels.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
Output:
func (*SecurityProfileGroupClient) CancelOperation ¶
func (c *SecurityProfileGroupClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SecurityProfileGroupClient) Close ¶
func (c *SecurityProfileGroupClient) Close() error
Close closes the connection to the API service. **Always** call Close() when the client is no longer required.
func (*SecurityProfileGroupClient) Connection
deprecated
func (c *SecurityProfileGroupClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*SecurityProfileGroupClient) CreateSecurityProfile ¶
func (c *SecurityProfileGroupClient) CreateSecurityProfile(ctx context.Context, req *networksecuritypb.CreateSecurityProfileRequest, opts ...gax.CallOption) (*CreateSecurityProfileOperation, error)
CreateSecurityProfile creates a new SecurityProfile in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileRequest.
}
op, err := c.CreateSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) CreateSecurityProfileGroup ¶
func (c *SecurityProfileGroupClient) CreateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.CreateSecurityProfileGroupRequest, opts ...gax.CallOption) (*CreateSecurityProfileGroupOperation, error)
CreateSecurityProfileGroup creates a new SecurityProfileGroup in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.CreateSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#CreateSecurityProfileGroupRequest.
}
op, err := c.CreateSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) CreateSecurityProfileGroupOperation ¶
func (c *SecurityProfileGroupClient) CreateSecurityProfileGroupOperation(name string) *CreateSecurityProfileGroupOperation
CreateSecurityProfileGroupOperation returns a new CreateSecurityProfileGroupOperation from a given name. The name must be that of a previously created CreateSecurityProfileGroupOperation, possibly from a different process.
func (*SecurityProfileGroupClient) CreateSecurityProfileOperation ¶
func (c *SecurityProfileGroupClient) CreateSecurityProfileOperation(name string) *CreateSecurityProfileOperation
CreateSecurityProfileOperation returns a new CreateSecurityProfileOperation from a given name. The name must be that of a previously created CreateSecurityProfileOperation, possibly from a different process.
func (*SecurityProfileGroupClient) DeleteOperation ¶
func (c *SecurityProfileGroupClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.DeleteOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest.
}
err = c.DeleteOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SecurityProfileGroupClient) DeleteSecurityProfile ¶
func (c *SecurityProfileGroupClient) DeleteSecurityProfile(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileRequest, opts ...gax.CallOption) (*DeleteSecurityProfileOperation, error)
DeleteSecurityProfile deletes a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileRequest.
}
op, err := c.DeleteSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SecurityProfileGroupClient) DeleteSecurityProfileGroup ¶
func (c *SecurityProfileGroupClient) DeleteSecurityProfileGroup(ctx context.Context, req *networksecuritypb.DeleteSecurityProfileGroupRequest, opts ...gax.CallOption) (*DeleteSecurityProfileGroupOperation, error)
DeleteSecurityProfileGroup deletes a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.DeleteSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#DeleteSecurityProfileGroupRequest.
}
op, err := c.DeleteSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
Output:
func (*SecurityProfileGroupClient) DeleteSecurityProfileGroupOperation ¶
func (c *SecurityProfileGroupClient) DeleteSecurityProfileGroupOperation(name string) *DeleteSecurityProfileGroupOperation
DeleteSecurityProfileGroupOperation returns a new DeleteSecurityProfileGroupOperation from a given name. The name must be that of a previously created DeleteSecurityProfileGroupOperation, possibly from a different process.
func (*SecurityProfileGroupClient) DeleteSecurityProfileOperation ¶
func (c *SecurityProfileGroupClient) DeleteSecurityProfileOperation(name string) *DeleteSecurityProfileOperation
DeleteSecurityProfileOperation returns a new DeleteSecurityProfileOperation from a given name. The name must be that of a previously created DeleteSecurityProfileOperation, possibly from a different process.
func (*SecurityProfileGroupClient) GetIamPolicy ¶
func (c *SecurityProfileGroupClient) GetIamPolicy(ctx context.Context, req *iampb.GetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
GetIamPolicy gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.GetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#GetIamPolicyRequest.
}
resp, err := c.GetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) GetLocation ¶
func (c *SecurityProfileGroupClient) GetLocation(ctx context.Context, req *locationpb.GetLocationRequest, opts ...gax.CallOption) (*locationpb.Location, error)
GetLocation gets information about a location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.GetLocationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#GetLocationRequest.
}
resp, err := c.GetLocation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) GetOperation ¶
func (c *SecurityProfileGroupClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) GetSecurityProfile ¶
func (c *SecurityProfileGroupClient) GetSecurityProfile(ctx context.Context, req *networksecuritypb.GetSecurityProfileRequest, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
GetSecurityProfile gets details of a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileRequest.
}
resp, err := c.GetSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) GetSecurityProfileGroup ¶
func (c *SecurityProfileGroupClient) GetSecurityProfileGroup(ctx context.Context, req *networksecuritypb.GetSecurityProfileGroupRequest, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
GetSecurityProfileGroup gets details of a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.GetSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#GetSecurityProfileGroupRequest.
}
resp, err := c.GetSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) ListLocations ¶
func (c *SecurityProfileGroupClient) ListLocations(ctx context.Context, req *locationpb.ListLocationsRequest, opts ...gax.CallOption) *LocationIterator
ListLocations lists information about the supported locations for this service.
This method lists locations based on the resource scope provided in the [ListLocationsRequest.name (at http://ListLocationsRequest.name)][google.cloud.location.ListLocationsRequest.name (at http://google.cloud.location.ListLocationsRequest.name)] field: * Global locations: If name is empty, the method lists the public locations available to all projects. * Project-specific locations: If name follows the format projects/{project}, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project.
For gRPC and client library implementations, the resource name is passed as the name field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
it := c.ListLocations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*locationpb.ListLocationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
locationpb "google.golang.org/genproto/googleapis/cloud/location"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &locationpb.ListLocationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/location#ListLocationsRequest.
}
for resp, err := range c.ListLocations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SecurityProfileGroupClient) ListOperations ¶
func (c *SecurityProfileGroupClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SecurityProfileGroupClient) ListSecurityProfileGroups ¶
func (c *SecurityProfileGroupClient) ListSecurityProfileGroups(ctx context.Context, req *networksecuritypb.ListSecurityProfileGroupsRequest, opts ...gax.CallOption) *SecurityProfileGroupIterator
ListSecurityProfileGroups lists SecurityProfileGroups in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfileGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
}
it := c.ListSecurityProfileGroups(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSecurityProfileGroupsResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfileGroupsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfileGroupsRequest.
}
for resp, err := range c.ListSecurityProfileGroups(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SecurityProfileGroupClient) ListSecurityProfiles ¶
func (c *SecurityProfileGroupClient) ListSecurityProfiles(ctx context.Context, req *networksecuritypb.ListSecurityProfilesRequest, opts ...gax.CallOption) *SecurityProfileIterator
ListSecurityProfiles lists SecurityProfiles in a given project and location.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfilesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
}
it := c.ListSecurityProfiles(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*networksecuritypb.ListSecurityProfilesResponse)
}
}
Output:
Example (All) ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.ListSecurityProfilesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#ListSecurityProfilesRequest.
}
for resp, err := range c.ListSecurityProfiles(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
Output:
func (*SecurityProfileGroupClient) SetIamPolicy ¶
func (c *SecurityProfileGroupClient) SetIamPolicy(ctx context.Context, req *iampb.SetIamPolicyRequest, opts ...gax.CallOption) (*iampb.Policy, error)
SetIamPolicy sets the access control policy on the specified resource. Replaces any existing policy.
Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.SetIamPolicyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#SetIamPolicyRequest.
}
resp, err := c.SetIamPolicy(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) TestIamPermissions ¶
func (c *SecurityProfileGroupClient) TestIamPermissions(ctx context.Context, req *iampb.TestIamPermissionsRequest, opts ...gax.CallOption) (*iampb.TestIamPermissionsResponse, error)
TestIamPermissions returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may “fail open” without warning.
Example ¶
package main
import (
"context"
iampb "cloud.google.com/go/iam/apiv1/iampb"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &iampb.TestIamPermissionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/iam/apiv1/iampb#TestIamPermissionsRequest.
}
resp, err := c.TestIamPermissions(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) UpdateSecurityProfile ¶
func (c *SecurityProfileGroupClient) UpdateSecurityProfile(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileRequest, opts ...gax.CallOption) (*UpdateSecurityProfileOperation, error)
UpdateSecurityProfile updates the parameters of a single SecurityProfile.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateSecurityProfileRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileRequest.
}
op, err := c.UpdateSecurityProfile(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) UpdateSecurityProfileGroup ¶
func (c *SecurityProfileGroupClient) UpdateSecurityProfileGroup(ctx context.Context, req *networksecuritypb.UpdateSecurityProfileGroupRequest, opts ...gax.CallOption) (*UpdateSecurityProfileGroupOperation, error)
UpdateSecurityProfileGroup updates the parameters of a single SecurityProfileGroup.
Example ¶
package main
import (
"context"
networksecurity "cloud.google.com/go/networksecurity/apiv1"
networksecuritypb "cloud.google.com/go/networksecurity/apiv1/networksecuritypb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := networksecurity.NewSecurityProfileGroupClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &networksecuritypb.UpdateSecurityProfileGroupRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/networksecurity/apiv1/networksecuritypb#UpdateSecurityProfileGroupRequest.
}
op, err := c.UpdateSecurityProfileGroup(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
Output:
func (*SecurityProfileGroupClient) UpdateSecurityProfileGroupOperation ¶
func (c *SecurityProfileGroupClient) UpdateSecurityProfileGroupOperation(name string) *UpdateSecurityProfileGroupOperation
UpdateSecurityProfileGroupOperation returns a new UpdateSecurityProfileGroupOperation from a given name. The name must be that of a previously created UpdateSecurityProfileGroupOperation, possibly from a different process.
func (*SecurityProfileGroupClient) UpdateSecurityProfileOperation ¶
func (c *SecurityProfileGroupClient) UpdateSecurityProfileOperation(name string) *UpdateSecurityProfileOperation
UpdateSecurityProfileOperation returns a new UpdateSecurityProfileOperation from a given name. The name must be that of a previously created UpdateSecurityProfileOperation, possibly from a different process.
type SecurityProfileGroupIterator ¶
type SecurityProfileGroupIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.SecurityProfileGroup, nextPageToken string, err error)
// contains filtered or unexported fields
}
SecurityProfileGroupIterator manages a stream of *networksecuritypb.SecurityProfileGroup.
func (*SecurityProfileGroupIterator) All ¶
func (it *SecurityProfileGroupIterator) All() iter.Seq2[*networksecuritypb.SecurityProfileGroup, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SecurityProfileGroupIterator) Next ¶
func (it *SecurityProfileGroupIterator) Next() (*networksecuritypb.SecurityProfileGroup, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SecurityProfileGroupIterator) PageInfo ¶
func (it *SecurityProfileGroupIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SecurityProfileIterator ¶
type SecurityProfileIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.SecurityProfile, nextPageToken string, err error)
// contains filtered or unexported fields
}
SecurityProfileIterator manages a stream of *networksecuritypb.SecurityProfile.
func (*SecurityProfileIterator) All ¶
func (it *SecurityProfileIterator) All() iter.Seq2[*networksecuritypb.SecurityProfile, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SecurityProfileIterator) Next ¶
func (it *SecurityProfileIterator) Next() (*networksecuritypb.SecurityProfile, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SecurityProfileIterator) PageInfo ¶
func (it *SecurityProfileIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ServerTlsPolicyIterator ¶
type ServerTlsPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.ServerTlsPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
ServerTlsPolicyIterator manages a stream of *networksecuritypb.ServerTlsPolicy.
func (*ServerTlsPolicyIterator) All ¶
func (it *ServerTlsPolicyIterator) All() iter.Seq2[*networksecuritypb.ServerTlsPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ServerTlsPolicyIterator) Next ¶
func (it *ServerTlsPolicyIterator) Next() (*networksecuritypb.ServerTlsPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ServerTlsPolicyIterator) PageInfo ¶
func (it *ServerTlsPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type TlsInspectionPolicyIterator ¶
type TlsInspectionPolicyIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.TlsInspectionPolicy, nextPageToken string, err error)
// contains filtered or unexported fields
}
TlsInspectionPolicyIterator manages a stream of *networksecuritypb.TlsInspectionPolicy.
func (*TlsInspectionPolicyIterator) All ¶
func (it *TlsInspectionPolicyIterator) All() iter.Seq2[*networksecuritypb.TlsInspectionPolicy, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*TlsInspectionPolicyIterator) Next ¶
func (it *TlsInspectionPolicyIterator) Next() (*networksecuritypb.TlsInspectionPolicy, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*TlsInspectionPolicyIterator) PageInfo ¶
func (it *TlsInspectionPolicyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type UpdateAddressGroupOperation ¶
type UpdateAddressGroupOperation struct {
// contains filtered or unexported fields
}
UpdateAddressGroupOperation manages a long-running operation from UpdateAddressGroup.
func (*UpdateAddressGroupOperation) Done ¶
func (op *UpdateAddressGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateAddressGroupOperation) Metadata ¶
func (op *UpdateAddressGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAddressGroupOperation) Name ¶
func (op *UpdateAddressGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAddressGroupOperation) Poll ¶
func (op *UpdateAddressGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAddressGroupOperation) Wait ¶
func (op *UpdateAddressGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AddressGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateAuthorizationPolicyOperation ¶
type UpdateAuthorizationPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateAuthorizationPolicyOperation manages a long-running operation from UpdateAuthorizationPolicy.
func (*UpdateAuthorizationPolicyOperation) Done ¶
func (op *UpdateAuthorizationPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateAuthorizationPolicyOperation) Metadata ¶
func (op *UpdateAuthorizationPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAuthorizationPolicyOperation) Name ¶
func (op *UpdateAuthorizationPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAuthorizationPolicyOperation) Poll ¶
func (op *UpdateAuthorizationPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAuthorizationPolicyOperation) Wait ¶
func (op *UpdateAuthorizationPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthorizationPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateAuthzPolicyOperation ¶
type UpdateAuthzPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateAuthzPolicyOperation manages a long-running operation from UpdateAuthzPolicy.
func (*UpdateAuthzPolicyOperation) Done ¶
func (op *UpdateAuthzPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateAuthzPolicyOperation) Metadata ¶
func (op *UpdateAuthzPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateAuthzPolicyOperation) Name ¶
func (op *UpdateAuthzPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateAuthzPolicyOperation) Poll ¶
func (op *UpdateAuthzPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateAuthzPolicyOperation) Wait ¶
func (op *UpdateAuthzPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.AuthzPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateBackendAuthenticationConfigOperation ¶
type UpdateBackendAuthenticationConfigOperation struct {
// contains filtered or unexported fields
}
UpdateBackendAuthenticationConfigOperation manages a long-running operation from UpdateBackendAuthenticationConfig.
func (*UpdateBackendAuthenticationConfigOperation) Done ¶
func (op *UpdateBackendAuthenticationConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateBackendAuthenticationConfigOperation) Metadata ¶
func (op *UpdateBackendAuthenticationConfigOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateBackendAuthenticationConfigOperation) Name ¶
func (op *UpdateBackendAuthenticationConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateBackendAuthenticationConfigOperation) Poll ¶
func (op *UpdateBackendAuthenticationConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateBackendAuthenticationConfigOperation) Wait ¶
func (op *UpdateBackendAuthenticationConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.BackendAuthenticationConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateClientTlsPolicyOperation ¶
type UpdateClientTlsPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateClientTlsPolicyOperation manages a long-running operation from UpdateClientTlsPolicy.
func (*UpdateClientTlsPolicyOperation) Done ¶
func (op *UpdateClientTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateClientTlsPolicyOperation) Metadata ¶
func (op *UpdateClientTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateClientTlsPolicyOperation) Name ¶
func (op *UpdateClientTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateClientTlsPolicyOperation) Poll ¶
func (op *UpdateClientTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateClientTlsPolicyOperation) Wait ¶
func (op *UpdateClientTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ClientTlsPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateFirewallEndpointAssociationOperation ¶
type UpdateFirewallEndpointAssociationOperation struct {
// contains filtered or unexported fields
}
UpdateFirewallEndpointAssociationOperation manages a long-running operation from UpdateFirewallEndpointAssociation.
func (*UpdateFirewallEndpointAssociationOperation) Done ¶
func (op *UpdateFirewallEndpointAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateFirewallEndpointAssociationOperation) Metadata ¶
func (op *UpdateFirewallEndpointAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateFirewallEndpointAssociationOperation) Name ¶
func (op *UpdateFirewallEndpointAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateFirewallEndpointAssociationOperation) Poll ¶
func (op *UpdateFirewallEndpointAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateFirewallEndpointAssociationOperation) Wait ¶
func (op *UpdateFirewallEndpointAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpointAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateFirewallEndpointOperation ¶
type UpdateFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
UpdateFirewallEndpointOperation manages a long-running operation from UpdateFirewallEndpoint.
func (*UpdateFirewallEndpointOperation) Done ¶
func (op *UpdateFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateFirewallEndpointOperation) Metadata ¶
func (op *UpdateFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateFirewallEndpointOperation) Name ¶
func (op *UpdateFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateFirewallEndpointOperation) Poll ¶
func (op *UpdateFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateFirewallEndpointOperation) Wait ¶
func (op *UpdateFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateGatewaySecurityPolicyOperation ¶
type UpdateGatewaySecurityPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateGatewaySecurityPolicyOperation manages a long-running operation from UpdateGatewaySecurityPolicy.
func (*UpdateGatewaySecurityPolicyOperation) Done ¶
func (op *UpdateGatewaySecurityPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateGatewaySecurityPolicyOperation) Metadata ¶
func (op *UpdateGatewaySecurityPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateGatewaySecurityPolicyOperation) Name ¶
func (op *UpdateGatewaySecurityPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateGatewaySecurityPolicyOperation) Poll ¶
func (op *UpdateGatewaySecurityPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateGatewaySecurityPolicyOperation) Wait ¶
func (op *UpdateGatewaySecurityPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateGatewaySecurityPolicyRuleOperation ¶
type UpdateGatewaySecurityPolicyRuleOperation struct {
// contains filtered or unexported fields
}
UpdateGatewaySecurityPolicyRuleOperation manages a long-running operation from UpdateGatewaySecurityPolicyRule.
func (*UpdateGatewaySecurityPolicyRuleOperation) Done ¶
func (op *UpdateGatewaySecurityPolicyRuleOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateGatewaySecurityPolicyRuleOperation) Metadata ¶
func (op *UpdateGatewaySecurityPolicyRuleOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateGatewaySecurityPolicyRuleOperation) Name ¶
func (op *UpdateGatewaySecurityPolicyRuleOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateGatewaySecurityPolicyRuleOperation) Poll ¶
func (op *UpdateGatewaySecurityPolicyRuleOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateGatewaySecurityPolicyRuleOperation) Wait ¶
func (op *UpdateGatewaySecurityPolicyRuleOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.GatewaySecurityPolicyRule, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateInterceptDeploymentGroupOperation ¶
type UpdateInterceptDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
UpdateInterceptDeploymentGroupOperation manages a long-running operation from UpdateInterceptDeploymentGroup.
func (*UpdateInterceptDeploymentGroupOperation) Done ¶
func (op *UpdateInterceptDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateInterceptDeploymentGroupOperation) Metadata ¶
func (op *UpdateInterceptDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateInterceptDeploymentGroupOperation) Name ¶
func (op *UpdateInterceptDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateInterceptDeploymentGroupOperation) Poll ¶
func (op *UpdateInterceptDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateInterceptDeploymentGroupOperation) Wait ¶
func (op *UpdateInterceptDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeploymentGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateInterceptDeploymentOperation ¶
type UpdateInterceptDeploymentOperation struct {
// contains filtered or unexported fields
}
UpdateInterceptDeploymentOperation manages a long-running operation from UpdateInterceptDeployment.
func (*UpdateInterceptDeploymentOperation) Done ¶
func (op *UpdateInterceptDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateInterceptDeploymentOperation) Metadata ¶
func (op *UpdateInterceptDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateInterceptDeploymentOperation) Name ¶
func (op *UpdateInterceptDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateInterceptDeploymentOperation) Poll ¶
func (op *UpdateInterceptDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateInterceptDeploymentOperation) Wait ¶
func (op *UpdateInterceptDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptDeployment, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateInterceptEndpointGroupAssociationOperation ¶
type UpdateInterceptEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
UpdateInterceptEndpointGroupAssociationOperation manages a long-running operation from UpdateInterceptEndpointGroupAssociation.
func (*UpdateInterceptEndpointGroupAssociationOperation) Done ¶
func (op *UpdateInterceptEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateInterceptEndpointGroupAssociationOperation) Metadata ¶
func (op *UpdateInterceptEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateInterceptEndpointGroupAssociationOperation) Name ¶
func (op *UpdateInterceptEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateInterceptEndpointGroupAssociationOperation) Poll ¶
func (op *UpdateInterceptEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateInterceptEndpointGroupAssociationOperation) Wait ¶
func (op *UpdateInterceptEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroupAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateInterceptEndpointGroupOperation ¶
type UpdateInterceptEndpointGroupOperation struct {
// contains filtered or unexported fields
}
UpdateInterceptEndpointGroupOperation manages a long-running operation from UpdateInterceptEndpointGroup.
func (*UpdateInterceptEndpointGroupOperation) Done ¶
func (op *UpdateInterceptEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateInterceptEndpointGroupOperation) Metadata ¶
func (op *UpdateInterceptEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateInterceptEndpointGroupOperation) Name ¶
func (op *UpdateInterceptEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateInterceptEndpointGroupOperation) Poll ¶
func (op *UpdateInterceptEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateInterceptEndpointGroupOperation) Wait ¶
func (op *UpdateInterceptEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.InterceptEndpointGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateMirroringDeploymentGroupOperation ¶
type UpdateMirroringDeploymentGroupOperation struct {
// contains filtered or unexported fields
}
UpdateMirroringDeploymentGroupOperation manages a long-running operation from UpdateMirroringDeploymentGroup.
func (*UpdateMirroringDeploymentGroupOperation) Done ¶
func (op *UpdateMirroringDeploymentGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateMirroringDeploymentGroupOperation) Metadata ¶
func (op *UpdateMirroringDeploymentGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateMirroringDeploymentGroupOperation) Name ¶
func (op *UpdateMirroringDeploymentGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateMirroringDeploymentGroupOperation) Poll ¶
func (op *UpdateMirroringDeploymentGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateMirroringDeploymentGroupOperation) Wait ¶
func (op *UpdateMirroringDeploymentGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeploymentGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateMirroringDeploymentOperation ¶
type UpdateMirroringDeploymentOperation struct {
// contains filtered or unexported fields
}
UpdateMirroringDeploymentOperation manages a long-running operation from UpdateMirroringDeployment.
func (*UpdateMirroringDeploymentOperation) Done ¶
func (op *UpdateMirroringDeploymentOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateMirroringDeploymentOperation) Metadata ¶
func (op *UpdateMirroringDeploymentOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateMirroringDeploymentOperation) Name ¶
func (op *UpdateMirroringDeploymentOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateMirroringDeploymentOperation) Poll ¶
func (op *UpdateMirroringDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateMirroringDeploymentOperation) Wait ¶
func (op *UpdateMirroringDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringDeployment, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateMirroringEndpointGroupAssociationOperation ¶
type UpdateMirroringEndpointGroupAssociationOperation struct {
// contains filtered or unexported fields
}
UpdateMirroringEndpointGroupAssociationOperation manages a long-running operation from UpdateMirroringEndpointGroupAssociation.
func (*UpdateMirroringEndpointGroupAssociationOperation) Done ¶
func (op *UpdateMirroringEndpointGroupAssociationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateMirroringEndpointGroupAssociationOperation) Metadata ¶
func (op *UpdateMirroringEndpointGroupAssociationOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateMirroringEndpointGroupAssociationOperation) Name ¶
func (op *UpdateMirroringEndpointGroupAssociationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateMirroringEndpointGroupAssociationOperation) Poll ¶
func (op *UpdateMirroringEndpointGroupAssociationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateMirroringEndpointGroupAssociationOperation) Wait ¶
func (op *UpdateMirroringEndpointGroupAssociationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroupAssociation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateMirroringEndpointGroupOperation ¶
type UpdateMirroringEndpointGroupOperation struct {
// contains filtered or unexported fields
}
UpdateMirroringEndpointGroupOperation manages a long-running operation from UpdateMirroringEndpointGroup.
func (*UpdateMirroringEndpointGroupOperation) Done ¶
func (op *UpdateMirroringEndpointGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateMirroringEndpointGroupOperation) Metadata ¶
func (op *UpdateMirroringEndpointGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateMirroringEndpointGroupOperation) Name ¶
func (op *UpdateMirroringEndpointGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateMirroringEndpointGroupOperation) Poll ¶
func (op *UpdateMirroringEndpointGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateMirroringEndpointGroupOperation) Wait ¶
func (op *UpdateMirroringEndpointGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.MirroringEndpointGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateProjectFirewallEndpointOperation ¶
type UpdateProjectFirewallEndpointOperation struct {
// contains filtered or unexported fields
}
UpdateProjectFirewallEndpointOperation manages a long-running operation from UpdateProjectFirewallEndpoint.
func (*UpdateProjectFirewallEndpointOperation) Done ¶
func (op *UpdateProjectFirewallEndpointOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateProjectFirewallEndpointOperation) Metadata ¶
func (op *UpdateProjectFirewallEndpointOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateProjectFirewallEndpointOperation) Name ¶
func (op *UpdateProjectFirewallEndpointOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateProjectFirewallEndpointOperation) Poll ¶
func (op *UpdateProjectFirewallEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateProjectFirewallEndpointOperation) Wait ¶
func (op *UpdateProjectFirewallEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.FirewallEndpoint, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateSecurityProfileGroupOperation ¶
type UpdateSecurityProfileGroupOperation struct {
// contains filtered or unexported fields
}
UpdateSecurityProfileGroupOperation manages a long-running operation from UpdateSecurityProfileGroup.
func (*UpdateSecurityProfileGroupOperation) Done ¶
func (op *UpdateSecurityProfileGroupOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSecurityProfileGroupOperation) Metadata ¶
func (op *UpdateSecurityProfileGroupOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateSecurityProfileGroupOperation) Name ¶
func (op *UpdateSecurityProfileGroupOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateSecurityProfileGroupOperation) Poll ¶
func (op *UpdateSecurityProfileGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateSecurityProfileGroupOperation) Wait ¶
func (op *UpdateSecurityProfileGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfileGroup, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateSecurityProfileOperation ¶
type UpdateSecurityProfileOperation struct {
// contains filtered or unexported fields
}
UpdateSecurityProfileOperation manages a long-running operation from UpdateSecurityProfile.
func (*UpdateSecurityProfileOperation) Done ¶
func (op *UpdateSecurityProfileOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSecurityProfileOperation) Metadata ¶
func (op *UpdateSecurityProfileOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateSecurityProfileOperation) Name ¶
func (op *UpdateSecurityProfileOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateSecurityProfileOperation) Poll ¶
func (op *UpdateSecurityProfileOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateSecurityProfileOperation) Wait ¶
func (op *UpdateSecurityProfileOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.SecurityProfile, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateServerTlsPolicyOperation ¶
type UpdateServerTlsPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateServerTlsPolicyOperation manages a long-running operation from UpdateServerTlsPolicy.
func (*UpdateServerTlsPolicyOperation) Done ¶
func (op *UpdateServerTlsPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateServerTlsPolicyOperation) Metadata ¶
func (op *UpdateServerTlsPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateServerTlsPolicyOperation) Name ¶
func (op *UpdateServerTlsPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateServerTlsPolicyOperation) Poll ¶
func (op *UpdateServerTlsPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateServerTlsPolicyOperation) Wait ¶
func (op *UpdateServerTlsPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.ServerTlsPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateTlsInspectionPolicyOperation ¶
type UpdateTlsInspectionPolicyOperation struct {
// contains filtered or unexported fields
}
UpdateTlsInspectionPolicyOperation manages a long-running operation from UpdateTlsInspectionPolicy.
func (*UpdateTlsInspectionPolicyOperation) Done ¶
func (op *UpdateTlsInspectionPolicyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateTlsInspectionPolicyOperation) Metadata ¶
func (op *UpdateTlsInspectionPolicyOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateTlsInspectionPolicyOperation) Name ¶
func (op *UpdateTlsInspectionPolicyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateTlsInspectionPolicyOperation) Poll ¶
func (op *UpdateTlsInspectionPolicyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateTlsInspectionPolicyOperation) Wait ¶
func (op *UpdateTlsInspectionPolicyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.TlsInspectionPolicy, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateUrlListOperation ¶
type UpdateUrlListOperation struct {
// contains filtered or unexported fields
}
UpdateUrlListOperation manages a long-running operation from UpdateUrlList.
func (*UpdateUrlListOperation) Done ¶
func (op *UpdateUrlListOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateUrlListOperation) Metadata ¶
func (op *UpdateUrlListOperation) Metadata() (*networksecuritypb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateUrlListOperation) Name ¶
func (op *UpdateUrlListOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateUrlListOperation) Poll ¶
func (op *UpdateUrlListOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateUrlListOperation) Wait ¶
func (op *UpdateUrlListOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*networksecuritypb.UrlList, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UrlListIterator ¶
type UrlListIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*networksecuritypb.UrlList, nextPageToken string, err error)
// contains filtered or unexported fields
}
UrlListIterator manages a stream of *networksecuritypb.UrlList.
func (*UrlListIterator) All ¶
func (it *UrlListIterator) All() iter.Seq2[*networksecuritypb.UrlList, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*UrlListIterator) Next ¶
func (it *UrlListIterator) Next() (*networksecuritypb.UrlList, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*UrlListIterator) PageInfo ¶
func (it *UrlListIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
Source Files
¶
- address_group_client.go
- auxiliary.go
- auxiliary_go123.go
- dns_threat_detector_client.go
- doc.go
- firewall_activation_client.go
- helpers.go
- intercept_client.go
- mirroring_client.go
- network_security_client.go
- organization_address_group_client.go
- organization_security_profile_group_client.go
- security_profile_group_client.go
- sse_realm_client.go
- version.go