Constants
IdentityAwareProxyAdminService_SetIamPolicy_FullMethodName, IdentityAwareProxyAdminService_GetIamPolicy_FullMethodName, IdentityAwareProxyAdminService_TestIamPermissions_FullMethodName, IdentityAwareProxyAdminService_GetIapSettings_FullMethodName, IdentityAwareProxyAdminService_UpdateIapSettings_FullMethodName, IdentityAwareProxyAdminService_ValidateIapAttributeExpression_FullMethodName, IdentityAwareProxyAdminService_ListTunnelDestGroups_FullMethodName, IdentityAwareProxyAdminService_CreateTunnelDestGroup_FullMethodName, IdentityAwareProxyAdminService_GetTunnelDestGroup_FullMethodName, IdentityAwareProxyAdminService_DeleteTunnelDestGroup_FullMethodName, IdentityAwareProxyAdminService_UpdateTunnelDestGroup_FullMethodName
const (
IdentityAwareProxyAdminService_SetIamPolicy_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/SetIamPolicy"
IdentityAwareProxyAdminService_GetIamPolicy_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/GetIamPolicy"
IdentityAwareProxyAdminService_TestIamPermissions_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/TestIamPermissions"
IdentityAwareProxyAdminService_GetIapSettings_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/GetIapSettings"
IdentityAwareProxyAdminService_UpdateIapSettings_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/UpdateIapSettings"
IdentityAwareProxyAdminService_ValidateIapAttributeExpression_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/ValidateIapAttributeExpression"
IdentityAwareProxyAdminService_ListTunnelDestGroups_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/ListTunnelDestGroups"
IdentityAwareProxyAdminService_CreateTunnelDestGroup_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/CreateTunnelDestGroup"
IdentityAwareProxyAdminService_GetTunnelDestGroup_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/GetTunnelDestGroup"
IdentityAwareProxyAdminService_DeleteTunnelDestGroup_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/DeleteTunnelDestGroup"
IdentityAwareProxyAdminService_UpdateTunnelDestGroup_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyAdminService/UpdateTunnelDestGroup"
)IdentityAwareProxyOAuthService_ListBrands_FullMethodName, IdentityAwareProxyOAuthService_CreateBrand_FullMethodName, IdentityAwareProxyOAuthService_GetBrand_FullMethodName, IdentityAwareProxyOAuthService_CreateIdentityAwareProxyClient_FullMethodName, IdentityAwareProxyOAuthService_ListIdentityAwareProxyClients_FullMethodName, IdentityAwareProxyOAuthService_GetIdentityAwareProxyClient_FullMethodName, IdentityAwareProxyOAuthService_ResetIdentityAwareProxyClientSecret_FullMethodName, IdentityAwareProxyOAuthService_DeleteIdentityAwareProxyClient_FullMethodName
const (
IdentityAwareProxyOAuthService_ListBrands_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/ListBrands"
IdentityAwareProxyOAuthService_CreateBrand_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/CreateBrand"
IdentityAwareProxyOAuthService_GetBrand_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/GetBrand"
IdentityAwareProxyOAuthService_CreateIdentityAwareProxyClient_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/CreateIdentityAwareProxyClient"
IdentityAwareProxyOAuthService_ListIdentityAwareProxyClients_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/ListIdentityAwareProxyClients"
IdentityAwareProxyOAuthService_GetIdentityAwareProxyClient_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/GetIdentityAwareProxyClient"
IdentityAwareProxyOAuthService_ResetIdentityAwareProxyClientSecret_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/ResetIdentityAwareProxyClientSecret"
IdentityAwareProxyOAuthService_DeleteIdentityAwareProxyClient_FullMethodName = "/google.cloud.iap.v1.IdentityAwareProxyOAuthService/DeleteIdentityAwareProxyClient"
)Variables
AccessSettings_IdentitySource_name, AccessSettings_IdentitySource_value
var (
AccessSettings_IdentitySource_name = map[int32]string{
0: "IDENTITY_SOURCE_UNSPECIFIED",
3: "WORKFORCE_IDENTITY_FEDERATION",
}
AccessSettings_IdentitySource_value = map[string]int32{
"IDENTITY_SOURCE_UNSPECIFIED": 0,
"WORKFORCE_IDENTITY_FEDERATION": 3,
}
)Enum value maps for AccessSettings_IdentitySource.
ReauthSettings_Method_name, ReauthSettings_Method_value
var (
ReauthSettings_Method_name = map[int32]string{
0: "METHOD_UNSPECIFIED",
1: "LOGIN",
2: "PASSWORD",
3: "SECURE_KEY",
4: "ENROLLED_SECOND_FACTORS",
}
ReauthSettings_Method_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"LOGIN": 1,
"PASSWORD": 2,
"SECURE_KEY": 3,
"ENROLLED_SECOND_FACTORS": 4,
}
)Enum value maps for ReauthSettings_Method.
ReauthSettings_PolicyType_name, ReauthSettings_PolicyType_value
var (
ReauthSettings_PolicyType_name = map[int32]string{
0: "POLICY_TYPE_UNSPECIFIED",
1: "MINIMUM",
2: "DEFAULT",
}
ReauthSettings_PolicyType_value = map[string]int32{
"POLICY_TYPE_UNSPECIFIED": 0,
"MINIMUM": 1,
"DEFAULT": 2,
}
)Enum value maps for ReauthSettings_PolicyType.
AttributePropagationSettings_OutputCredentials_name, AttributePropagationSettings_OutputCredentials_value
var (
AttributePropagationSettings_OutputCredentials_name = map[int32]string{
0: "OUTPUT_CREDENTIALS_UNSPECIFIED",
1: "HEADER",
2: "JWT",
3: "RCTOKEN",
}
AttributePropagationSettings_OutputCredentials_value = map[string]int32{
"OUTPUT_CREDENTIALS_UNSPECIFIED": 0,
"HEADER": 1,
"JWT": 2,
"RCTOKEN": 3,
}
)Enum value maps for AttributePropagationSettings_OutputCredentials.
File_google_cloud_iap_v1_service_proto
var File_google_cloud_iap_v1_service_proto protoreflect.FileDescriptorIdentityAwareProxyAdminService_ServiceDesc
var IdentityAwareProxyAdminService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.iap.v1.IdentityAwareProxyAdminService",
HandlerType: (*IdentityAwareProxyAdminServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetIamPolicy",
Handler: _IdentityAwareProxyAdminService_SetIamPolicy_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _IdentityAwareProxyAdminService_GetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _IdentityAwareProxyAdminService_TestIamPermissions_Handler,
},
{
MethodName: "GetIapSettings",
Handler: _IdentityAwareProxyAdminService_GetIapSettings_Handler,
},
{
MethodName: "UpdateIapSettings",
Handler: _IdentityAwareProxyAdminService_UpdateIapSettings_Handler,
},
{
MethodName: "ValidateIapAttributeExpression",
Handler: _IdentityAwareProxyAdminService_ValidateIapAttributeExpression_Handler,
},
{
MethodName: "ListTunnelDestGroups",
Handler: _IdentityAwareProxyAdminService_ListTunnelDestGroups_Handler,
},
{
MethodName: "CreateTunnelDestGroup",
Handler: _IdentityAwareProxyAdminService_CreateTunnelDestGroup_Handler,
},
{
MethodName: "GetTunnelDestGroup",
Handler: _IdentityAwareProxyAdminService_GetTunnelDestGroup_Handler,
},
{
MethodName: "DeleteTunnelDestGroup",
Handler: _IdentityAwareProxyAdminService_DeleteTunnelDestGroup_Handler,
},
{
MethodName: "UpdateTunnelDestGroup",
Handler: _IdentityAwareProxyAdminService_UpdateTunnelDestGroup_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/iap/v1/service.proto",
}IdentityAwareProxyAdminService_ServiceDesc is the grpc.ServiceDesc for IdentityAwareProxyAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
IdentityAwareProxyOAuthService_ServiceDesc
var IdentityAwareProxyOAuthService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.iap.v1.IdentityAwareProxyOAuthService",
HandlerType: (*IdentityAwareProxyOAuthServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListBrands",
Handler: _IdentityAwareProxyOAuthService_ListBrands_Handler,
},
{
MethodName: "CreateBrand",
Handler: _IdentityAwareProxyOAuthService_CreateBrand_Handler,
},
{
MethodName: "GetBrand",
Handler: _IdentityAwareProxyOAuthService_GetBrand_Handler,
},
{
MethodName: "CreateIdentityAwareProxyClient",
Handler: _IdentityAwareProxyOAuthService_CreateIdentityAwareProxyClient_Handler,
},
{
MethodName: "ListIdentityAwareProxyClients",
Handler: _IdentityAwareProxyOAuthService_ListIdentityAwareProxyClients_Handler,
},
{
MethodName: "GetIdentityAwareProxyClient",
Handler: _IdentityAwareProxyOAuthService_GetIdentityAwareProxyClient_Handler,
},
{
MethodName: "ResetIdentityAwareProxyClientSecret",
Handler: _IdentityAwareProxyOAuthService_ResetIdentityAwareProxyClientSecret_Handler,
},
{
MethodName: "DeleteIdentityAwareProxyClient",
Handler: _IdentityAwareProxyOAuthService_DeleteIdentityAwareProxyClient_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/iap/v1/service.proto",
}IdentityAwareProxyOAuthService_ServiceDesc is the grpc.ServiceDesc for IdentityAwareProxyOAuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterIdentityAwareProxyAdminServiceServer
func RegisterIdentityAwareProxyAdminServiceServer(s grpc.ServiceRegistrar, srv IdentityAwareProxyAdminServiceServer)func RegisterIdentityAwareProxyOAuthServiceServer
func RegisterIdentityAwareProxyOAuthServiceServer(s grpc.ServiceRegistrar, srv IdentityAwareProxyOAuthServiceServer)AccessDeniedPageSettings
type AccessDeniedPageSettings struct {
// The URI to be redirected to when access is denied.
AccessDeniedPageUri *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=access_denied_page_uri,json=accessDeniedPageUri,proto3" json:"access_denied_page_uri,omitempty"`
// Whether to generate a troubleshooting URL on access denied events to this
// application.
GenerateTroubleshootingUri *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=generate_troubleshooting_uri,json=generateTroubleshootingUri,proto3" json:"generate_troubleshooting_uri,omitempty"`
// Whether to generate remediation token on access denied events to this
// application.
RemediationTokenGenerationEnabled *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=remediation_token_generation_enabled,json=remediationTokenGenerationEnabled,proto3,oneof" json:"remediation_token_generation_enabled,omitempty"`
// contains filtered or unexported fields
}Custom content configuration for access denied page. IAP allows customers to define a custom URI to use as the error page when access is denied to users. If IAP prevents access to this page, the default IAP error page will be displayed instead.
func (*AccessDeniedPageSettings) Descriptor
func (*AccessDeniedPageSettings) Descriptor() ([]byte, []int)Deprecated: Use AccessDeniedPageSettings.ProtoReflect.Descriptor instead.
func (*AccessDeniedPageSettings) GetAccessDeniedPageUri
func (x *AccessDeniedPageSettings) GetAccessDeniedPageUri() *wrapperspb.StringValuefunc (*AccessDeniedPageSettings) GetGenerateTroubleshootingUri
func (x *AccessDeniedPageSettings) GetGenerateTroubleshootingUri() *wrapperspb.BoolValuefunc (*AccessDeniedPageSettings) GetRemediationTokenGenerationEnabled
func (x *AccessDeniedPageSettings) GetRemediationTokenGenerationEnabled() *wrapperspb.BoolValuefunc (*AccessDeniedPageSettings) ProtoMessage
func (*AccessDeniedPageSettings) ProtoMessage()func (*AccessDeniedPageSettings) ProtoReflect
func (x *AccessDeniedPageSettings) ProtoReflect() protoreflect.Messagefunc (*AccessDeniedPageSettings) Reset
func (x *AccessDeniedPageSettings) Reset()func (*AccessDeniedPageSettings) String
func (x *AccessDeniedPageSettings) String() stringAccessSettings
type AccessSettings struct {
// Optional. GCIP claims and endpoint configurations for 3p identity
// providers.
GcipSettings *GcipSettings `protobuf:"bytes,1,opt,name=gcip_settings,json=gcipSettings,proto3" json:"gcip_settings,omitempty"`
// Optional. Configuration to allow cross-origin requests via IAP.
CorsSettings *CorsSettings `protobuf:"bytes,2,opt,name=cors_settings,json=corsSettings,proto3" json:"cors_settings,omitempty"`
// Optional. Settings to configure IAP's OAuth behavior.
OauthSettings *OAuthSettings `protobuf:"bytes,3,opt,name=oauth_settings,json=oauthSettings,proto3" json:"oauth_settings,omitempty"`
// Optional. Settings to configure reauthentication policies in IAP.
ReauthSettings *ReauthSettings `protobuf:"bytes,6,opt,name=reauth_settings,json=reauthSettings,proto3" json:"reauth_settings,omitempty"`
// Optional. Settings to configure and enable allowed domains.
AllowedDomainsSettings *AllowedDomainsSettings `protobuf:"bytes,7,opt,name=allowed_domains_settings,json=allowedDomainsSettings,proto3" json:"allowed_domains_settings,omitempty"`
// Optional. Settings to configure the workforce identity federation,
// including workforce pools and OAuth 2.0 settings.
WorkforceIdentitySettings *WorkforceIdentitySettings `protobuf:"bytes,9,opt,name=workforce_identity_settings,json=workforceIdentitySettings,proto3" json:"workforce_identity_settings,omitempty"`
// Optional. Identity sources that IAP can use to authenticate the end user.
// Only one identity source can be configured.
IdentitySources []AccessSettings_IdentitySource `protobuf:"varint,10,rep,packed,name=identity_sources,json=identitySources,proto3,enum=google.cloud.iap.v1.AccessSettings_IdentitySource" json:"identity_sources,omitempty"`
// contains filtered or unexported fields
}Access related settings for IAP protected apps.
func (*AccessSettings) Descriptor
func (*AccessSettings) Descriptor() ([]byte, []int)Deprecated: Use AccessSettings.ProtoReflect.Descriptor instead.
func (*AccessSettings) GetAllowedDomainsSettings
func (x *AccessSettings) GetAllowedDomainsSettings() *AllowedDomainsSettingsfunc (*AccessSettings) GetCorsSettings
func (x *AccessSettings) GetCorsSettings() *CorsSettingsfunc (*AccessSettings) GetGcipSettings
func (x *AccessSettings) GetGcipSettings() *GcipSettingsfunc (*AccessSettings) GetIdentitySources
func (x *AccessSettings) GetIdentitySources() []AccessSettings_IdentitySourcefunc (*AccessSettings) GetOauthSettings
func (x *AccessSettings) GetOauthSettings() *OAuthSettingsfunc (*AccessSettings) GetReauthSettings
func (x *AccessSettings) GetReauthSettings() *ReauthSettingsfunc (*AccessSettings) GetWorkforceIdentitySettings
func (x *AccessSettings) GetWorkforceIdentitySettings() *WorkforceIdentitySettingsfunc (*AccessSettings) ProtoMessage
func (*AccessSettings) ProtoMessage()func (*AccessSettings) ProtoReflect
func (x *AccessSettings) ProtoReflect() protoreflect.Messagefunc (*AccessSettings) Reset
func (x *AccessSettings) Reset()func (*AccessSettings) String
func (x *AccessSettings) String() stringAccessSettings_IdentitySource
type AccessSettings_IdentitySource int32Types of identity source supported by IAP.
AccessSettings_IDENTITY_SOURCE_UNSPECIFIED, AccessSettings_WORKFORCE_IDENTITY_FEDERATION
const (
// IdentitySource Unspecified.
// When selected, IAP relies on which identity settings are fully configured
// to redirect the traffic to. The precedence order is
// WorkforceIdentitySettings > GcipSettings. If none is set, default to use
// Google identity.
AccessSettings_IDENTITY_SOURCE_UNSPECIFIED AccessSettings_IdentitySource = 0
// Use external identities set up on Google Cloud Workforce Identity
// Federation.
AccessSettings_WORKFORCE_IDENTITY_FEDERATION AccessSettings_IdentitySource = 3
)func (AccessSettings_IdentitySource) Descriptor
func (AccessSettings_IdentitySource) Descriptor() protoreflect.EnumDescriptorfunc (AccessSettings_IdentitySource) Enum
func (x AccessSettings_IdentitySource) Enum() *AccessSettings_IdentitySourcefunc (AccessSettings_IdentitySource) EnumDescriptor
func (AccessSettings_IdentitySource) EnumDescriptor() ([]byte, []int)Deprecated: Use AccessSettings_IdentitySource.Descriptor instead.
func (AccessSettings_IdentitySource) Number
func (x AccessSettings_IdentitySource) Number() protoreflect.EnumNumberfunc (AccessSettings_IdentitySource) String
func (x AccessSettings_IdentitySource) String() stringfunc (AccessSettings_IdentitySource) Type
func (AccessSettings_IdentitySource) Type() protoreflect.EnumTypeAllowedDomainsSettings
type AllowedDomainsSettings struct {
// Optional. Configuration for customers to opt in for the feature.
Enable *bool `protobuf:"varint,1,opt,name=enable,proto3,oneof" json:"enable,omitempty"`
// Optional. List of trusted domains.
Domains []string `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"`
// contains filtered or unexported fields
}Configuration for IAP allowed domains. Lets you to restrict access to an app and allow access to only the domains that you list.
func (*AllowedDomainsSettings) Descriptor
func (*AllowedDomainsSettings) Descriptor() ([]byte, []int)Deprecated: Use AllowedDomainsSettings.ProtoReflect.Descriptor instead.
func (*AllowedDomainsSettings) GetDomains
func (x *AllowedDomainsSettings) GetDomains() []stringfunc (*AllowedDomainsSettings) GetEnable
func (x *AllowedDomainsSettings) GetEnable() boolfunc (*AllowedDomainsSettings) ProtoMessage
func (*AllowedDomainsSettings) ProtoMessage()func (*AllowedDomainsSettings) ProtoReflect
func (x *AllowedDomainsSettings) ProtoReflect() protoreflect.Messagefunc (*AllowedDomainsSettings) Reset
func (x *AllowedDomainsSettings) Reset()func (*AllowedDomainsSettings) String
func (x *AllowedDomainsSettings) String() stringApplicationSettings
type ApplicationSettings struct {
// Optional. Settings to configure IAP's behavior for a service mesh.
CsmSettings *CsmSettings `protobuf:"bytes,1,opt,name=csm_settings,json=csmSettings,proto3" json:"csm_settings,omitempty"`
// Optional. Customization for Access Denied page.
AccessDeniedPageSettings *AccessDeniedPageSettings `protobuf:"bytes,2,opt,name=access_denied_page_settings,json=accessDeniedPageSettings,proto3" json:"access_denied_page_settings,omitempty"`
// The Domain value to set for cookies generated by IAP. This value is not
// validated by the API, but will be ignored at runtime if invalid.
CookieDomain *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=cookie_domain,json=cookieDomain,proto3" json:"cookie_domain,omitempty"`
// Optional. Settings to configure attribute propagation.
AttributePropagationSettings *AttributePropagationSettings `protobuf:"bytes,4,opt,name=attribute_propagation_settings,json=attributePropagationSettings,proto3" json:"attribute_propagation_settings,omitempty"`
// contains filtered or unexported fields
}Wrapper over application specific settings for IAP.
func (*ApplicationSettings) Descriptor
func (*ApplicationSettings) Descriptor() ([]byte, []int)Deprecated: Use ApplicationSettings.ProtoReflect.Descriptor instead.
func (*ApplicationSettings) GetAccessDeniedPageSettings
func (x *ApplicationSettings) GetAccessDeniedPageSettings() *AccessDeniedPageSettingsfunc (*ApplicationSettings) GetAttributePropagationSettings
func (x *ApplicationSettings) GetAttributePropagationSettings() *AttributePropagationSettingsfunc (*ApplicationSettings) GetCookieDomain
func (x *ApplicationSettings) GetCookieDomain() *wrapperspb.StringValuefunc (*ApplicationSettings) GetCsmSettings
func (x *ApplicationSettings) GetCsmSettings() *CsmSettingsfunc (*ApplicationSettings) ProtoMessage
func (*ApplicationSettings) ProtoMessage()func (*ApplicationSettings) ProtoReflect
func (x *ApplicationSettings) ProtoReflect() protoreflect.Messagefunc (*ApplicationSettings) Reset
func (x *ApplicationSettings) Reset()func (*ApplicationSettings) String
func (x *ApplicationSettings) String() stringAttributePropagationSettings
type AttributePropagationSettings struct {
// Optional. Raw string CEL expression. Must return a list of attributes. A
// maximum of 45 attributes can be selected. Expressions can select different
// attribute types from `attributes`: `attributes.saml_attributes`,
// `attributes.iap_attributes`. The following functions are supported:
//
// - filter `Configuration for propagating attributes to applications protected by IAP.
func (*AttributePropagationSettings) Descriptor
func (*AttributePropagationSettings) Descriptor() ([]byte, []int)Deprecated: Use AttributePropagationSettings.ProtoReflect.Descriptor instead.
func (*AttributePropagationSettings) GetEnable
func (x *AttributePropagationSettings) GetEnable() boolfunc (*AttributePropagationSettings) GetExpression
func (x *AttributePropagationSettings) GetExpression() stringfunc (*AttributePropagationSettings) GetOutputCredentials
func (x *AttributePropagationSettings) GetOutputCredentials() []AttributePropagationSettings_OutputCredentialsfunc (*AttributePropagationSettings) ProtoMessage
func (*AttributePropagationSettings) ProtoMessage()func (*AttributePropagationSettings) ProtoReflect
func (x *AttributePropagationSettings) ProtoReflect() protoreflect.Messagefunc (*AttributePropagationSettings) Reset
func (x *AttributePropagationSettings) Reset()func (*AttributePropagationSettings) String
func (x *AttributePropagationSettings) String() stringAttributePropagationSettings_OutputCredentials
type AttributePropagationSettings_OutputCredentials int32Supported output credentials for attribute propagation. Each output credential maps to a "field" in the response. For example, selecting JWT will propagate all attributes in the IAP JWT, header in the headers, etc.
AttributePropagationSettings_OUTPUT_CREDENTIALS_UNSPECIFIED, AttributePropagationSettings_HEADER, AttributePropagationSettings_JWT, AttributePropagationSettings_RCTOKEN
const (
// An output credential is required.
AttributePropagationSettings_OUTPUT_CREDENTIALS_UNSPECIFIED AttributePropagationSettings_OutputCredentials = 0
// Propagate attributes in the headers with "x-goog-iap-attr-" prefix.
AttributePropagationSettings_HEADER AttributePropagationSettings_OutputCredentials = 1
// Propagate attributes in the JWT of the form: `"additional_claims": {
// "my_attribute": ["value1", "value2"] }`
AttributePropagationSettings_JWT AttributePropagationSettings_OutputCredentials = 2
// Propagate attributes in the RCToken of the form: `"additional_claims": {
// "my_attribute": ["value1", "value2"] }`
AttributePropagationSettings_RCTOKEN AttributePropagationSettings_OutputCredentials = 3
)func (AttributePropagationSettings_OutputCredentials) Descriptor
func (AttributePropagationSettings_OutputCredentials) Descriptor() protoreflect.EnumDescriptorfunc (AttributePropagationSettings_OutputCredentials) Enum
func (x AttributePropagationSettings_OutputCredentials) Enum() *AttributePropagationSettings_OutputCredentialsfunc (AttributePropagationSettings_OutputCredentials) EnumDescriptor
func (AttributePropagationSettings_OutputCredentials) EnumDescriptor() ([]byte, []int)Deprecated: Use AttributePropagationSettings_OutputCredentials.Descriptor instead.
func (AttributePropagationSettings_OutputCredentials) Number
func (x AttributePropagationSettings_OutputCredentials) Number() protoreflect.EnumNumberfunc (AttributePropagationSettings_OutputCredentials) String
func (x AttributePropagationSettings_OutputCredentials) String() stringfunc (AttributePropagationSettings_OutputCredentials) Type
Brand
type Brand struct {
// Output only. Identifier of the brand.
// NOTE: GCP project number achieves the same brand identification purpose as
// only one brand per project can be created.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Support email displayed on the OAuth consent screen.
SupportEmail string `protobuf:"bytes,2,opt,name=support_email,json=supportEmail,proto3" json:"support_email,omitempty"`
// Application name displayed on OAuth consent screen.
ApplicationTitle string `protobuf:"bytes,3,opt,name=application_title,json=applicationTitle,proto3" json:"application_title,omitempty"`
// Output only. Whether the brand is only intended for usage inside the
// G Suite organization only.
OrgInternalOnly bool `protobuf:"varint,4,opt,name=org_internal_only,json=orgInternalOnly,proto3" json:"org_internal_only,omitempty"`
// contains filtered or unexported fields
}OAuth brand data. NOTE: Only contains a portion of the data that describes a brand.
func (*Brand) Descriptor
Deprecated: Use Brand.ProtoReflect.Descriptor instead.
func (*Brand) GetApplicationTitle
func (*Brand) GetName
func (*Brand) GetOrgInternalOnly
func (*Brand) GetSupportEmail
func (*Brand) ProtoMessage
func (*Brand) ProtoMessage()func (*Brand) ProtoReflect
func (x *Brand) ProtoReflect() protoreflect.Messagefunc (*Brand) Reset
func (x *Brand) Reset()func (*Brand) String
CorsSettings
type CorsSettings struct {
// Configuration to allow HTTP `OPTIONS` calls to skip
// authentication and authorization. If undefined, IAP will not apply any
// special logic to `OPTIONS` requests.
AllowHttpOptions *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=allow_http_options,json=allowHttpOptions,proto3" json:"allow_http_options,omitempty"`
// contains filtered or unexported fields
}Allows customers to configure HTTP request paths that'll allow HTTP
OPTIONS call to bypass authentication and authorization.
func (*CorsSettings) Descriptor
func (*CorsSettings) Descriptor() ([]byte, []int)Deprecated: Use CorsSettings.ProtoReflect.Descriptor instead.
func (*CorsSettings) GetAllowHttpOptions
func (x *CorsSettings) GetAllowHttpOptions() *wrapperspb.BoolValuefunc (*CorsSettings) ProtoMessage
func (*CorsSettings) ProtoMessage()func (*CorsSettings) ProtoReflect
func (x *CorsSettings) ProtoReflect() protoreflect.Messagefunc (*CorsSettings) Reset
func (x *CorsSettings) Reset()func (*CorsSettings) String
func (x *CorsSettings) String() stringCreateBrandRequest
type CreateBrandRequest struct {
// Required. GCP Project number/id under which the brand is to be created.
// In the following format: projects/{project_number/id}.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The brand to be created.
Brand *Brand `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"`
// contains filtered or unexported fields
}The request sent to CreateBrand.
func (*CreateBrandRequest) Descriptor
func (*CreateBrandRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateBrandRequest.ProtoReflect.Descriptor instead.
func (*CreateBrandRequest) GetBrand
func (x *CreateBrandRequest) GetBrand() *Brandfunc (*CreateBrandRequest) GetParent
func (x *CreateBrandRequest) GetParent() stringfunc (*CreateBrandRequest) ProtoMessage
func (*CreateBrandRequest) ProtoMessage()func (*CreateBrandRequest) ProtoReflect
func (x *CreateBrandRequest) ProtoReflect() protoreflect.Messagefunc (*CreateBrandRequest) Reset
func (x *CreateBrandRequest) Reset()func (*CreateBrandRequest) String
func (x *CreateBrandRequest) String() stringCreateIdentityAwareProxyClientRequest
type CreateIdentityAwareProxyClientRequest struct {
// Required. Path to create the client in.
// In the following format:
// projects/{project_number/id}/brands/{brand}.
// The project must belong to a G Suite account.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Identity Aware Proxy Client to be created.
IdentityAwareProxyClient *IdentityAwareProxyClient `protobuf:"bytes,2,opt,name=identity_aware_proxy_client,json=identityAwareProxyClient,proto3" json:"identity_aware_proxy_client,omitempty"`
// contains filtered or unexported fields
}The request sent to CreateIdentityAwareProxyClient.
func (*CreateIdentityAwareProxyClientRequest) Descriptor
func (*CreateIdentityAwareProxyClientRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateIdentityAwareProxyClientRequest.ProtoReflect.Descriptor instead.
func (*CreateIdentityAwareProxyClientRequest) GetIdentityAwareProxyClient
func (x *CreateIdentityAwareProxyClientRequest) GetIdentityAwareProxyClient() *IdentityAwareProxyClientfunc (*CreateIdentityAwareProxyClientRequest) GetParent
func (x *CreateIdentityAwareProxyClientRequest) GetParent() stringfunc (*CreateIdentityAwareProxyClientRequest) ProtoMessage
func (*CreateIdentityAwareProxyClientRequest) ProtoMessage()func (*CreateIdentityAwareProxyClientRequest) ProtoReflect
func (x *CreateIdentityAwareProxyClientRequest) ProtoReflect() protoreflect.Messagefunc (*CreateIdentityAwareProxyClientRequest) Reset
func (x *CreateIdentityAwareProxyClientRequest) Reset()func (*CreateIdentityAwareProxyClientRequest) String
func (x *CreateIdentityAwareProxyClientRequest) String() stringCreateTunnelDestGroupRequest
type CreateTunnelDestGroupRequest struct {
// Required. Google Cloud Project ID and location.
// In the following format:
// `projects/{project_number/id}/iap_tunnel/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The TunnelDestGroup to create.
TunnelDestGroup *TunnelDestGroup `protobuf:"bytes,2,opt,name=tunnel_dest_group,json=tunnelDestGroup,proto3" json:"tunnel_dest_group,omitempty"`
// Required. The ID to use for the TunnelDestGroup, which becomes the final
// component of the resource name.
//
// This value must be 4-63 characters, and valid characters
// are `[a-z]-`.
TunnelDestGroupId string `protobuf:"bytes,3,opt,name=tunnel_dest_group_id,json=tunnelDestGroupId,proto3" json:"tunnel_dest_group_id,omitempty"`
// contains filtered or unexported fields
}The request to CreateTunnelDestGroup.
func (*CreateTunnelDestGroupRequest) Descriptor
func (*CreateTunnelDestGroupRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateTunnelDestGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateTunnelDestGroupRequest) GetParent
func (x *CreateTunnelDestGroupRequest) GetParent() stringfunc (*CreateTunnelDestGroupRequest) GetTunnelDestGroup
func (x *CreateTunnelDestGroupRequest) GetTunnelDestGroup() *TunnelDestGroupfunc (*CreateTunnelDestGroupRequest) GetTunnelDestGroupId
func (x *CreateTunnelDestGroupRequest) GetTunnelDestGroupId() stringfunc (*CreateTunnelDestGroupRequest) ProtoMessage
func (*CreateTunnelDestGroupRequest) ProtoMessage()func (*CreateTunnelDestGroupRequest) ProtoReflect
func (x *CreateTunnelDestGroupRequest) ProtoReflect() protoreflect.Messagefunc (*CreateTunnelDestGroupRequest) Reset
func (x *CreateTunnelDestGroupRequest) Reset()func (*CreateTunnelDestGroupRequest) String
func (x *CreateTunnelDestGroupRequest) String() stringCsmSettings
type CsmSettings struct {
// Audience claim set in the generated RCToken. This value is not validated by
// IAP.
RctokenAud *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=rctoken_aud,json=rctokenAud,proto3" json:"rctoken_aud,omitempty"`
// contains filtered or unexported fields
}Configuration for RCToken generated for service mesh workloads protected by IAP. RCToken are IAP generated JWTs that can be verified at the application. The RCToken is primarily used for service mesh deployments, and can be scoped to a single mesh by configuring the audience field accordingly.
func (*CsmSettings) Descriptor
func (*CsmSettings) Descriptor() ([]byte, []int)Deprecated: Use CsmSettings.ProtoReflect.Descriptor instead.
func (*CsmSettings) GetRctokenAud
func (x *CsmSettings) GetRctokenAud() *wrapperspb.StringValuefunc (*CsmSettings) ProtoMessage
func (*CsmSettings) ProtoMessage()func (*CsmSettings) ProtoReflect
func (x *CsmSettings) ProtoReflect() protoreflect.Messagefunc (*CsmSettings) Reset
func (x *CsmSettings) Reset()func (*CsmSettings) String
func (x *CsmSettings) String() stringDeleteIdentityAwareProxyClientRequest
type DeleteIdentityAwareProxyClientRequest struct {
// Required. Name of the Identity Aware Proxy client to be deleted.
// In the following format:
// projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to DeleteIdentityAwareProxyClient.
func (*DeleteIdentityAwareProxyClientRequest) Descriptor
func (*DeleteIdentityAwareProxyClientRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteIdentityAwareProxyClientRequest.ProtoReflect.Descriptor instead.
func (*DeleteIdentityAwareProxyClientRequest) GetName
func (x *DeleteIdentityAwareProxyClientRequest) GetName() stringfunc (*DeleteIdentityAwareProxyClientRequest) ProtoMessage
func (*DeleteIdentityAwareProxyClientRequest) ProtoMessage()func (*DeleteIdentityAwareProxyClientRequest) ProtoReflect
func (x *DeleteIdentityAwareProxyClientRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteIdentityAwareProxyClientRequest) Reset
func (x *DeleteIdentityAwareProxyClientRequest) Reset()func (*DeleteIdentityAwareProxyClientRequest) String
func (x *DeleteIdentityAwareProxyClientRequest) String() stringDeleteTunnelDestGroupRequest
type DeleteTunnelDestGroupRequest struct {
// Required. Name of the TunnelDestGroup to delete.
// In the following format:
// `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request to DeleteTunnelDestGroup.
func (*DeleteTunnelDestGroupRequest) Descriptor
func (*DeleteTunnelDestGroupRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteTunnelDestGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteTunnelDestGroupRequest) GetName
func (x *DeleteTunnelDestGroupRequest) GetName() stringfunc (*DeleteTunnelDestGroupRequest) ProtoMessage
func (*DeleteTunnelDestGroupRequest) ProtoMessage()func (*DeleteTunnelDestGroupRequest) ProtoReflect
func (x *DeleteTunnelDestGroupRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteTunnelDestGroupRequest) Reset
func (x *DeleteTunnelDestGroupRequest) Reset()func (*DeleteTunnelDestGroupRequest) String
func (x *DeleteTunnelDestGroupRequest) String() stringGcipSettings
type GcipSettings struct {
// Optional. GCIP tenant IDs that are linked to the IAP resource. `tenant_ids`
// could be a string beginning with a number character to indicate
// authenticating with GCIP tenant flow, or in the format of
// `_Allows customers to configure tenant IDs for a Cloud Identity Platform (GCIP) instance for each application.
func (*GcipSettings) Descriptor
func (*GcipSettings) Descriptor() ([]byte, []int)Deprecated: Use GcipSettings.ProtoReflect.Descriptor instead.
func (*GcipSettings) GetLoginPageUri
func (x *GcipSettings) GetLoginPageUri() *wrapperspb.StringValuefunc (*GcipSettings) GetTenantIds
func (x *GcipSettings) GetTenantIds() []stringfunc (*GcipSettings) ProtoMessage
func (*GcipSettings) ProtoMessage()func (*GcipSettings) ProtoReflect
func (x *GcipSettings) ProtoReflect() protoreflect.Messagefunc (*GcipSettings) Reset
func (x *GcipSettings) Reset()func (*GcipSettings) String
func (x *GcipSettings) String() stringGetBrandRequest
type GetBrandRequest struct {
// Required. Name of the brand to be fetched.
// In the following format: projects/{project_number/id}/brands/{brand}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to GetBrand.
func (*GetBrandRequest) Descriptor
func (*GetBrandRequest) Descriptor() ([]byte, []int)Deprecated: Use GetBrandRequest.ProtoReflect.Descriptor instead.
func (*GetBrandRequest) GetName
func (x *GetBrandRequest) GetName() stringfunc (*GetBrandRequest) ProtoMessage
func (*GetBrandRequest) ProtoMessage()func (*GetBrandRequest) ProtoReflect
func (x *GetBrandRequest) ProtoReflect() protoreflect.Messagefunc (*GetBrandRequest) Reset
func (x *GetBrandRequest) Reset()func (*GetBrandRequest) String
func (x *GetBrandRequest) String() stringGetIapSettingsRequest
type GetIapSettingsRequest struct {
// Required. The resource name for which to retrieve the settings.
// Authorization: Requires the `getSettings` permission for the associated
// resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to GetIapSettings.
func (*GetIapSettingsRequest) Descriptor
func (*GetIapSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use GetIapSettingsRequest.ProtoReflect.Descriptor instead.
func (*GetIapSettingsRequest) GetName
func (x *GetIapSettingsRequest) GetName() stringfunc (*GetIapSettingsRequest) ProtoMessage
func (*GetIapSettingsRequest) ProtoMessage()func (*GetIapSettingsRequest) ProtoReflect
func (x *GetIapSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*GetIapSettingsRequest) Reset
func (x *GetIapSettingsRequest) Reset()func (*GetIapSettingsRequest) String
func (x *GetIapSettingsRequest) String() stringGetIdentityAwareProxyClientRequest
type GetIdentityAwareProxyClientRequest struct {
// Required. Name of the Identity Aware Proxy client to be fetched.
// In the following format:
// projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to GetIdentityAwareProxyClient.
func (*GetIdentityAwareProxyClientRequest) Descriptor
func (*GetIdentityAwareProxyClientRequest) Descriptor() ([]byte, []int)Deprecated: Use GetIdentityAwareProxyClientRequest.ProtoReflect.Descriptor instead.
func (*GetIdentityAwareProxyClientRequest) GetName
func (x *GetIdentityAwareProxyClientRequest) GetName() stringfunc (*GetIdentityAwareProxyClientRequest) ProtoMessage
func (*GetIdentityAwareProxyClientRequest) ProtoMessage()func (*GetIdentityAwareProxyClientRequest) ProtoReflect
func (x *GetIdentityAwareProxyClientRequest) ProtoReflect() protoreflect.Messagefunc (*GetIdentityAwareProxyClientRequest) Reset
func (x *GetIdentityAwareProxyClientRequest) Reset()func (*GetIdentityAwareProxyClientRequest) String
func (x *GetIdentityAwareProxyClientRequest) String() stringGetTunnelDestGroupRequest
type GetTunnelDestGroupRequest struct {
// Required. Name of the TunnelDestGroup to be fetched.
// In the following format:
// `projects/{project_number/id}/iap_tunnel/locations/{location}/destGroups/{dest_group}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request to GetTunnelDestGroup.
func (*GetTunnelDestGroupRequest) Descriptor
func (*GetTunnelDestGroupRequest) Descriptor() ([]byte, []int)Deprecated: Use GetTunnelDestGroupRequest.ProtoReflect.Descriptor instead.
func (*GetTunnelDestGroupRequest) GetName
func (x *GetTunnelDestGroupRequest) GetName() stringfunc (*GetTunnelDestGroupRequest) ProtoMessage
func (*GetTunnelDestGroupRequest) ProtoMessage()func (*GetTunnelDestGroupRequest) ProtoReflect
func (x *GetTunnelDestGroupRequest) ProtoReflect() protoreflect.Messagefunc (*GetTunnelDestGroupRequest) Reset
func (x *GetTunnelDestGroupRequest) Reset()func (*GetTunnelDestGroupRequest) String
func (x *GetTunnelDestGroupRequest) String() stringIapSettings
type IapSettings struct {
// Required. The resource name of the IAP protected resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Top level wrapper for all access related setting in IAP
AccessSettings *AccessSettings `protobuf:"bytes,5,opt,name=access_settings,json=accessSettings,proto3" json:"access_settings,omitempty"`
// Optional. Top level wrapper for all application related settings in IAP
ApplicationSettings *ApplicationSettings `protobuf:"bytes,6,opt,name=application_settings,json=applicationSettings,proto3" json:"application_settings,omitempty"`
// contains filtered or unexported fields
}The IAP configurable settings.
func (*IapSettings) Descriptor
func (*IapSettings) Descriptor() ([]byte, []int)Deprecated: Use IapSettings.ProtoReflect.Descriptor instead.
func (*IapSettings) GetAccessSettings
func (x *IapSettings) GetAccessSettings() *AccessSettingsfunc (*IapSettings) GetApplicationSettings
func (x *IapSettings) GetApplicationSettings() *ApplicationSettingsfunc (*IapSettings) GetName
func (x *IapSettings) GetName() stringfunc (*IapSettings) ProtoMessage
func (*IapSettings) ProtoMessage()func (*IapSettings) ProtoReflect
func (x *IapSettings) ProtoReflect() protoreflect.Messagefunc (*IapSettings) Reset
func (x *IapSettings) Reset()func (*IapSettings) String
func (x *IapSettings) String() stringIdentityAwareProxyAdminServiceClient
type IdentityAwareProxyAdminServiceClient interface {
// Sets the access control policy for an Identity-Aware Proxy protected
// resource. Replaces any existing policy.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
SetIamPolicy(ctx context.Context, in *iampb.SetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Gets the access control policy for an Identity-Aware Proxy protected
// resource.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
GetIamPolicy(ctx context.Context, in *iampb.GetIamPolicyRequest, opts ...grpc.CallOption) (*iampb.Policy, error)
// Returns permissions that a caller has on the Identity-Aware Proxy protected
// resource.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
TestIamPermissions(ctx context.Context, in *iampb.TestIamPermissionsRequest, opts ...grpc.CallOption) (*iampb.TestIamPermissionsResponse, error)
// Gets the IAP settings on a particular IAP protected resource.
GetIapSettings(ctx context.Context, in *GetIapSettingsRequest, opts ...grpc.CallOption) (*IapSettings, error)
// Updates the IAP settings on a particular IAP protected resource. It
// replaces all fields unless the `update_mask` is set.
UpdateIapSettings(ctx context.Context, in *UpdateIapSettingsRequest, opts ...grpc.CallOption) (*IapSettings, error)
// Validates that a given CEL expression conforms to IAP restrictions.
ValidateIapAttributeExpression(ctx context.Context, in *ValidateIapAttributeExpressionRequest, opts ...grpc.CallOption) (*ValidateIapAttributeExpressionResponse, error)
// Lists the existing TunnelDestGroups. To group across all locations, use a
// `-` as the location ID. For example:
// `/v1/projects/123/iap_tunnel/locations/-/destGroups`
ListTunnelDestGroups(ctx context.Context, in *ListTunnelDestGroupsRequest, opts ...grpc.CallOption) (*ListTunnelDestGroupsResponse, error)
// Creates a new TunnelDestGroup.
CreateTunnelDestGroup(ctx context.Context, in *CreateTunnelDestGroupRequest, opts ...grpc.CallOption) (*TunnelDestGroup, error)
// Retrieves an existing TunnelDestGroup.
GetTunnelDestGroup(ctx context.Context, in *GetTunnelDestGroupRequest, opts ...grpc.CallOption) (*TunnelDestGroup, error)
// Deletes a TunnelDestGroup.
DeleteTunnelDestGroup(ctx context.Context, in *DeleteTunnelDestGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates a TunnelDestGroup.
UpdateTunnelDestGroup(ctx context.Context, in *UpdateTunnelDestGroupRequest, opts ...grpc.CallOption) (*TunnelDestGroup, error)
}IdentityAwareProxyAdminServiceClient is the client API for IdentityAwareProxyAdminService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIdentityAwareProxyAdminServiceClient
func NewIdentityAwareProxyAdminServiceClient(cc grpc.ClientConnInterface) IdentityAwareProxyAdminServiceClientIdentityAwareProxyAdminServiceServer
type IdentityAwareProxyAdminServiceServer interface {
// Sets the access control policy for an Identity-Aware Proxy protected
// resource. Replaces any existing policy.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)
// Gets the access control policy for an Identity-Aware Proxy protected
// resource.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)
// Returns permissions that a caller has on the Identity-Aware Proxy protected
// resource.
// More information about managing access via IAP can be found at:
// https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)
// Gets the IAP settings on a particular IAP protected resource.
GetIapSettings(context.Context, *GetIapSettingsRequest) (*IapSettings, error)
// Updates the IAP settings on a particular IAP protected resource. It
// replaces all fields unless the `update_mask` is set.
UpdateIapSettings(context.Context, *UpdateIapSettingsRequest) (*IapSettings, error)
// Validates that a given CEL expression conforms to IAP restrictions.
ValidateIapAttributeExpression(context.Context, *ValidateIapAttributeExpressionRequest) (*ValidateIapAttributeExpressionResponse, error)
// Lists the existing TunnelDestGroups. To group across all locations, use a
// `-` as the location ID. For example:
// `/v1/projects/123/iap_tunnel/locations/-/destGroups`
ListTunnelDestGroups(context.Context, *ListTunnelDestGroupsRequest) (*ListTunnelDestGroupsResponse, error)
// Creates a new TunnelDestGroup.
CreateTunnelDestGroup(context.Context, *CreateTunnelDestGroupRequest) (*TunnelDestGroup, error)
// Retrieves an existing TunnelDestGroup.
GetTunnelDestGroup(context.Context, *GetTunnelDestGroupRequest) (*TunnelDestGroup, error)
// Deletes a TunnelDestGroup.
DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*emptypb.Empty, error)
// Updates a TunnelDestGroup.
UpdateTunnelDestGroup(context.Context, *UpdateTunnelDestGroupRequest) (*TunnelDestGroup, error)
}IdentityAwareProxyAdminServiceServer is the server API for IdentityAwareProxyAdminService service. All implementations should embed UnimplementedIdentityAwareProxyAdminServiceServer for forward compatibility
IdentityAwareProxyClient
type IdentityAwareProxyClient struct {
// Output only. Unique identifier of the OAuth client.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Client secret of the OAuth client.
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
// Human-friendly name given to the OAuth client.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// contains filtered or unexported fields
}Contains the data that describes an Identity Aware Proxy owned client.
func (*IdentityAwareProxyClient) Descriptor
func (*IdentityAwareProxyClient) Descriptor() ([]byte, []int)Deprecated: Use IdentityAwareProxyClient.ProtoReflect.Descriptor instead.
func (*IdentityAwareProxyClient) GetDisplayName
func (x *IdentityAwareProxyClient) GetDisplayName() stringfunc (*IdentityAwareProxyClient) GetName
func (x *IdentityAwareProxyClient) GetName() stringfunc (*IdentityAwareProxyClient) GetSecret
func (x *IdentityAwareProxyClient) GetSecret() stringfunc (*IdentityAwareProxyClient) ProtoMessage
func (*IdentityAwareProxyClient) ProtoMessage()func (*IdentityAwareProxyClient) ProtoReflect
func (x *IdentityAwareProxyClient) ProtoReflect() protoreflect.Messagefunc (*IdentityAwareProxyClient) Reset
func (x *IdentityAwareProxyClient) Reset()func (*IdentityAwareProxyClient) String
func (x *IdentityAwareProxyClient) String() stringIdentityAwareProxyOAuthServiceClient
type IdentityAwareProxyOAuthServiceClient interface {
// Lists the existing brands for the project.
ListBrands(ctx context.Context, in *ListBrandsRequest, opts ...grpc.CallOption) (*ListBrandsResponse, error)
// Constructs a new OAuth brand for the project if one does not exist.
// The created brand is "internal only", meaning that OAuth clients created
// under it only accept requests from users who belong to the same Google
// Workspace organization as the project. The brand is created in an
// un-reviewed status. NOTE: The "internal only" status can be manually
// changed in the Google Cloud Console. Requires that a brand does not already
// exist for the project, and that the specified support email is owned by the
// caller.
CreateBrand(ctx context.Context, in *CreateBrandRequest, opts ...grpc.CallOption) (*Brand, error)
// Retrieves the OAuth brand of the project.
GetBrand(ctx context.Context, in *GetBrandRequest, opts ...grpc.CallOption) (*Brand, error)
// Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned
// by IAP. Requires that the brand for the project exists and that it is
// set for internal-only use.
CreateIdentityAwareProxyClient(ctx context.Context, in *CreateIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*IdentityAwareProxyClient, error)
// Lists the existing clients for the brand.
ListIdentityAwareProxyClients(ctx context.Context, in *ListIdentityAwareProxyClientsRequest, opts ...grpc.CallOption) (*ListIdentityAwareProxyClientsResponse, error)
// Retrieves an Identity Aware Proxy (IAP) OAuth client.
// Requires that the client is owned by IAP.
GetIdentityAwareProxyClient(ctx context.Context, in *GetIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*IdentityAwareProxyClient, error)
// Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the
// secret was compromised. Requires that the client is owned by IAP.
ResetIdentityAwareProxyClientSecret(ctx context.Context, in *ResetIdentityAwareProxyClientSecretRequest, opts ...grpc.CallOption) (*IdentityAwareProxyClient, error)
// Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing
// obsolete clients, managing the number of clients in a given project, and
// cleaning up after tests. Requires that the client is owned by IAP.
DeleteIdentityAwareProxyClient(ctx context.Context, in *DeleteIdentityAwareProxyClientRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}IdentityAwareProxyOAuthServiceClient is the client API for IdentityAwareProxyOAuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIdentityAwareProxyOAuthServiceClient
func NewIdentityAwareProxyOAuthServiceClient(cc grpc.ClientConnInterface) IdentityAwareProxyOAuthServiceClientIdentityAwareProxyOAuthServiceServer
type IdentityAwareProxyOAuthServiceServer interface {
// Lists the existing brands for the project.
ListBrands(context.Context, *ListBrandsRequest) (*ListBrandsResponse, error)
// Constructs a new OAuth brand for the project if one does not exist.
// The created brand is "internal only", meaning that OAuth clients created
// under it only accept requests from users who belong to the same Google
// Workspace organization as the project. The brand is created in an
// un-reviewed status. NOTE: The "internal only" status can be manually
// changed in the Google Cloud Console. Requires that a brand does not already
// exist for the project, and that the specified support email is owned by the
// caller.
CreateBrand(context.Context, *CreateBrandRequest) (*Brand, error)
// Retrieves the OAuth brand of the project.
GetBrand(context.Context, *GetBrandRequest) (*Brand, error)
// Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned
// by IAP. Requires that the brand for the project exists and that it is
// set for internal-only use.
CreateIdentityAwareProxyClient(context.Context, *CreateIdentityAwareProxyClientRequest) (*IdentityAwareProxyClient, error)
// Lists the existing clients for the brand.
ListIdentityAwareProxyClients(context.Context, *ListIdentityAwareProxyClientsRequest) (*ListIdentityAwareProxyClientsResponse, error)
// Retrieves an Identity Aware Proxy (IAP) OAuth client.
// Requires that the client is owned by IAP.
GetIdentityAwareProxyClient(context.Context, *GetIdentityAwareProxyClientRequest) (*IdentityAwareProxyClient, error)
// Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the
// secret was compromised. Requires that the client is owned by IAP.
ResetIdentityAwareProxyClientSecret(context.Context, *ResetIdentityAwareProxyClientSecretRequest) (*IdentityAwareProxyClient, error)
// Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing
// obsolete clients, managing the number of clients in a given project, and
// cleaning up after tests. Requires that the client is owned by IAP.
DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*emptypb.Empty, error)
}IdentityAwareProxyOAuthServiceServer is the server API for IdentityAwareProxyOAuthService service. All implementations should embed UnimplementedIdentityAwareProxyOAuthServiceServer for forward compatibility
ListBrandsRequest
type ListBrandsRequest struct {
// Required. GCP Project number/id.
// In the following format: projects/{project_number/id}.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// contains filtered or unexported fields
}The request sent to ListBrands.
func (*ListBrandsRequest) Descriptor
func (*ListBrandsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListBrandsRequest.ProtoReflect.Descriptor instead.
func (*ListBrandsRequest) GetParent
func (x *ListBrandsRequest) GetParent() stringfunc (*ListBrandsRequest) ProtoMessage
func (*ListBrandsRequest) ProtoMessage()func (*ListBrandsRequest) ProtoReflect
func (x *ListBrandsRequest) ProtoReflect() protoreflect.Messagefunc (*ListBrandsRequest) Reset
func (x *ListBrandsRequest) Reset()func (*ListBrandsRequest) String
func (x *ListBrandsRequest) String() stringListBrandsResponse
type ListBrandsResponse struct {
// Brands existing in the project.
Brands []*Brand `protobuf:"bytes,1,rep,name=brands,proto3" json:"brands,omitempty"`
// contains filtered or unexported fields
}Response message for ListBrands.
func (*ListBrandsResponse) Descriptor
func (*ListBrandsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListBrandsResponse.ProtoReflect.Descriptor instead.
func (*ListBrandsResponse) GetBrands
func (x *ListBrandsResponse) GetBrands() []*Brandfunc (*ListBrandsResponse) ProtoMessage
func (*ListBrandsResponse) ProtoMessage()func (*ListBrandsResponse) ProtoReflect
func (x *ListBrandsResponse) ProtoReflect() protoreflect.Messagefunc (*ListBrandsResponse) Reset
func (x *ListBrandsResponse) Reset()func (*ListBrandsResponse) String
func (x *ListBrandsResponse) String() stringListIdentityAwareProxyClientsRequest
type ListIdentityAwareProxyClientsRequest struct {
// Required. Full brand path.
// In the following format: projects/{project_number/id}/brands/{brand}.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of clients to return. The service may return fewer than
// this value.
// If unspecified, at most 100 clients will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListIdentityAwareProxyClients`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListIdentityAwareProxyClients` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request sent to ListIdentityAwareProxyClients.
func (*ListIdentityAwareProxyClientsRequest) Descriptor
func (*ListIdentityAwareProxyClientsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListIdentityAwareProxyClientsRequest.ProtoReflect.Descriptor instead.
func (*ListIdentityAwareProxyClientsRequest) GetPageSize
func (x *ListIdentityAwareProxyClientsRequest) GetPageSize() int32func (*ListIdentityAwareProxyClientsRequest) GetPageToken
func (x *ListIdentityAwareProxyClientsRequest) GetPageToken() stringfunc (*ListIdentityAwareProxyClientsRequest) GetParent
func (x *ListIdentityAwareProxyClientsRequest) GetParent() stringfunc (*ListIdentityAwareProxyClientsRequest) ProtoMessage
func (*ListIdentityAwareProxyClientsRequest) ProtoMessage()func (*ListIdentityAwareProxyClientsRequest) ProtoReflect
func (x *ListIdentityAwareProxyClientsRequest) ProtoReflect() protoreflect.Messagefunc (*ListIdentityAwareProxyClientsRequest) Reset
func (x *ListIdentityAwareProxyClientsRequest) Reset()func (*ListIdentityAwareProxyClientsRequest) String
func (x *ListIdentityAwareProxyClientsRequest) String() stringListIdentityAwareProxyClientsResponse
type ListIdentityAwareProxyClientsResponse struct {
// Clients existing in the brand.
IdentityAwareProxyClients []*IdentityAwareProxyClient `protobuf:"bytes,1,rep,name=identity_aware_proxy_clients,json=identityAwareProxyClients,proto3" json:"identity_aware_proxy_clients,omitempty"`
// A token, which can be send as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response message for ListIdentityAwareProxyClients.
func (*ListIdentityAwareProxyClientsResponse) Descriptor
func (*ListIdentityAwareProxyClientsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListIdentityAwareProxyClientsResponse.ProtoReflect.Descriptor instead.
func (*ListIdentityAwareProxyClientsResponse) GetIdentityAwareProxyClients
func (x *ListIdentityAwareProxyClientsResponse) GetIdentityAwareProxyClients() []*IdentityAwareProxyClientfunc (*ListIdentityAwareProxyClientsResponse) GetNextPageToken
func (x *ListIdentityAwareProxyClientsResponse) GetNextPageToken() stringfunc (*ListIdentityAwareProxyClientsResponse) ProtoMessage
func (*ListIdentityAwareProxyClientsResponse) ProtoMessage()func (*ListIdentityAwareProxyClientsResponse) ProtoReflect
func (x *ListIdentityAwareProxyClientsResponse) ProtoReflect() protoreflect.Messagefunc (*ListIdentityAwareProxyClientsResponse) Reset
func (x *ListIdentityAwareProxyClientsResponse) Reset()func (*ListIdentityAwareProxyClientsResponse) String
func (x *ListIdentityAwareProxyClientsResponse) String() stringListTunnelDestGroupsRequest
type ListTunnelDestGroupsRequest struct {
// Required. Google Cloud Project ID and location.
// In the following format:
// `projects/{project_number/id}/iap_tunnel/locations/{location}`.
// A `-` can be used for the location to group across all locations.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of groups to return. The service might return fewer than
// this value.
// If unspecified, at most 100 groups are returned.
// The maximum value is 1000; values above 1000 are coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListTunnelDestGroups`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListTunnelDestGroups` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The request to ListTunnelDestGroups.
func (*ListTunnelDestGroupsRequest) Descriptor
func (*ListTunnelDestGroupsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListTunnelDestGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListTunnelDestGroupsRequest) GetPageSize
func (x *ListTunnelDestGroupsRequest) GetPageSize() int32func (*ListTunnelDestGroupsRequest) GetPageToken
func (x *ListTunnelDestGroupsRequest) GetPageToken() stringfunc (*ListTunnelDestGroupsRequest) GetParent
func (x *ListTunnelDestGroupsRequest) GetParent() stringfunc (*ListTunnelDestGroupsRequest) ProtoMessage
func (*ListTunnelDestGroupsRequest) ProtoMessage()func (*ListTunnelDestGroupsRequest) ProtoReflect
func (x *ListTunnelDestGroupsRequest) ProtoReflect() protoreflect.Messagefunc (*ListTunnelDestGroupsRequest) Reset
func (x *ListTunnelDestGroupsRequest) Reset()func (*ListTunnelDestGroupsRequest) String
func (x *ListTunnelDestGroupsRequest) String() stringListTunnelDestGroupsResponse
type ListTunnelDestGroupsResponse struct {
// TunnelDestGroup existing in the project.
TunnelDestGroups []*TunnelDestGroup `protobuf:"bytes,1,rep,name=tunnel_dest_groups,json=tunnelDestGroups,proto3" json:"tunnel_dest_groups,omitempty"`
// A token that you can send as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The response from ListTunnelDestGroups.
func (*ListTunnelDestGroupsResponse) Descriptor
func (*ListTunnelDestGroupsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListTunnelDestGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListTunnelDestGroupsResponse) GetNextPageToken
func (x *ListTunnelDestGroupsResponse) GetNextPageToken() stringfunc (*ListTunnelDestGroupsResponse) GetTunnelDestGroups
func (x *ListTunnelDestGroupsResponse) GetTunnelDestGroups() []*TunnelDestGroupfunc (*ListTunnelDestGroupsResponse) ProtoMessage
func (*ListTunnelDestGroupsResponse) ProtoMessage()func (*ListTunnelDestGroupsResponse) ProtoReflect
func (x *ListTunnelDestGroupsResponse) ProtoReflect() protoreflect.Messagefunc (*ListTunnelDestGroupsResponse) Reset
func (x *ListTunnelDestGroupsResponse) Reset()func (*ListTunnelDestGroupsResponse) String
func (x *ListTunnelDestGroupsResponse) String() stringOAuth2
type OAuth2 struct {
// The OAuth 2.0 client ID registered in the workforce identity federation
// OAuth 2.0 Server.
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Input only. The OAuth 2.0 client secret created while registering the
// client ID.
ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
// Output only. SHA256 hash value for the client secret. This field is
// returned by IAP when the settings are retrieved.
ClientSecretSha256 string `protobuf:"bytes,3,opt,name=client_secret_sha256,json=clientSecretSha256,proto3" json:"client_secret_sha256,omitempty"`
// contains filtered or unexported fields
}The OAuth 2.0 Settings
func (*OAuth2) Descriptor
Deprecated: Use OAuth2.ProtoReflect.Descriptor instead.
func (*OAuth2) GetClientId
func (*OAuth2) GetClientSecret
func (*OAuth2) GetClientSecretSha256
func (*OAuth2) ProtoMessage
func (*OAuth2) ProtoMessage()func (*OAuth2) ProtoReflect
func (x *OAuth2) ProtoReflect() protoreflect.Messagefunc (*OAuth2) Reset
func (x *OAuth2) Reset()func (*OAuth2) String
OAuthSettings
type OAuthSettings struct {
// Domain hint to send as hd=? parameter in OAuth request flow. Enables
// redirect to primary IDP by skipping Google's login screen.
// https://developers.google.com/identity/protocols/OpenIDConnect#hd-param
// Note: IAP does not verify that the id token's hd claim matches this value
// since access behavior is managed by IAM policies.
LoginHint *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=login_hint,json=loginHint,proto3" json:"login_hint,omitempty"`
// Optional. OAuth 2.0 client ID used in the OAuth flow.
// This allows for client sharing. The risks of client sharing
// are outlined here:
// https://cloud.google.com/iap/docs/sharing-oauth-clients#risks.
ClientId *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Optional. Input only. OAuth secret paired with client ID.
ClientSecret *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
// Output only. OAuth secret SHA256 paired with client ID.
ClientSecretSha256 *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=client_secret_sha256,json=clientSecretSha256,proto3" json:"client_secret_sha256,omitempty"`
// Optional. List of client ids allowed to use IAP programmatically.
ProgrammaticClients []string `protobuf:"bytes,5,rep,name=programmatic_clients,json=programmaticClients,proto3" json:"programmatic_clients,omitempty"`
// contains filtered or unexported fields
}Configuration for OAuth login&consent flow behavior as well as for OAuth Credentials.
func (*OAuthSettings) Descriptor
func (*OAuthSettings) Descriptor() ([]byte, []int)Deprecated: Use OAuthSettings.ProtoReflect.Descriptor instead.
func (*OAuthSettings) GetClientId
func (x *OAuthSettings) GetClientId() *wrapperspb.StringValuefunc (*OAuthSettings) GetClientSecret
func (x *OAuthSettings) GetClientSecret() *wrapperspb.StringValuefunc (*OAuthSettings) GetClientSecretSha256
func (x *OAuthSettings) GetClientSecretSha256() *wrapperspb.StringValuefunc (*OAuthSettings) GetLoginHint
func (x *OAuthSettings) GetLoginHint() *wrapperspb.StringValuefunc (*OAuthSettings) GetProgrammaticClients
func (x *OAuthSettings) GetProgrammaticClients() []stringfunc (*OAuthSettings) ProtoMessage
func (*OAuthSettings) ProtoMessage()func (*OAuthSettings) ProtoReflect
func (x *OAuthSettings) ProtoReflect() protoreflect.Messagefunc (*OAuthSettings) Reset
func (x *OAuthSettings) Reset()func (*OAuthSettings) String
func (x *OAuthSettings) String() stringReauthSettings
type ReauthSettings struct {
// Optional. Reauth method requested.
Method ReauthSettings_Method `protobuf:"varint,1,opt,name=method,proto3,enum=google.cloud.iap.v1.ReauthSettings_Method" json:"method,omitempty"`
// Optional. Reauth session lifetime, how long before a user has to
// reauthenticate again.
MaxAge *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
// Optional. How IAP determines the effective policy in cases of hierarchical
// policies. Policies are merged from higher in the hierarchy to lower in the
// hierarchy.
PolicyType ReauthSettings_PolicyType `protobuf:"varint,3,opt,name=policy_type,json=policyType,proto3,enum=google.cloud.iap.v1.ReauthSettings_PolicyType" json:"policy_type,omitempty"`
// contains filtered or unexported fields
}Configuration for IAP reauthentication policies.
func (*ReauthSettings) Descriptor
func (*ReauthSettings) Descriptor() ([]byte, []int)Deprecated: Use ReauthSettings.ProtoReflect.Descriptor instead.
func (*ReauthSettings) GetMaxAge
func (x *ReauthSettings) GetMaxAge() *durationpb.Durationfunc (*ReauthSettings) GetMethod
func (x *ReauthSettings) GetMethod() ReauthSettings_Methodfunc (*ReauthSettings) GetPolicyType
func (x *ReauthSettings) GetPolicyType() ReauthSettings_PolicyTypefunc (*ReauthSettings) ProtoMessage
func (*ReauthSettings) ProtoMessage()func (*ReauthSettings) ProtoReflect
func (x *ReauthSettings) ProtoReflect() protoreflect.Messagefunc (*ReauthSettings) Reset
func (x *ReauthSettings) Reset()func (*ReauthSettings) String
func (x *ReauthSettings) String() stringReauthSettings_Method
type ReauthSettings_Method int32Types of reauthentication methods supported by IAP.
ReauthSettings_METHOD_UNSPECIFIED, ReauthSettings_LOGIN, ReauthSettings_PASSWORD, ReauthSettings_SECURE_KEY, ReauthSettings_ENROLLED_SECOND_FACTORS
const (
// Reauthentication disabled.
ReauthSettings_METHOD_UNSPECIFIED ReauthSettings_Method = 0
// Prompts the user to log in again.
ReauthSettings_LOGIN ReauthSettings_Method = 1
// Deprecated: Marked as deprecated in google/cloud/iap/v1/service.proto.
ReauthSettings_PASSWORD ReauthSettings_Method = 2
// User must use their secure key 2nd factor device.
ReauthSettings_SECURE_KEY ReauthSettings_Method = 3
// User can use any enabled 2nd factor.
ReauthSettings_ENROLLED_SECOND_FACTORS ReauthSettings_Method = 4
)func (ReauthSettings_Method) Descriptor
func (ReauthSettings_Method) Descriptor() protoreflect.EnumDescriptorfunc (ReauthSettings_Method) Enum
func (x ReauthSettings_Method) Enum() *ReauthSettings_Methodfunc (ReauthSettings_Method) EnumDescriptor
func (ReauthSettings_Method) EnumDescriptor() ([]byte, []int)Deprecated: Use ReauthSettings_Method.Descriptor instead.
func (ReauthSettings_Method) Number
func (x ReauthSettings_Method) Number() protoreflect.EnumNumberfunc (ReauthSettings_Method) String
func (x ReauthSettings_Method) String() stringfunc (ReauthSettings_Method) Type
func (ReauthSettings_Method) Type() protoreflect.EnumTypeReauthSettings_PolicyType
type ReauthSettings_PolicyType int32Type of policy in the case of hierarchical policies.
ReauthSettings_POLICY_TYPE_UNSPECIFIED, ReauthSettings_MINIMUM, ReauthSettings_DEFAULT
const (
// Default value. This value is unused.
ReauthSettings_POLICY_TYPE_UNSPECIFIED ReauthSettings_PolicyType = 0
// This policy acts as a minimum to other policies, lower in the hierarchy.
// Effective policy may only be the same or stricter.
ReauthSettings_MINIMUM ReauthSettings_PolicyType = 1
// This policy acts as a default if no other reauth policy is set.
ReauthSettings_DEFAULT ReauthSettings_PolicyType = 2
)func (ReauthSettings_PolicyType) Descriptor
func (ReauthSettings_PolicyType) Descriptor() protoreflect.EnumDescriptorfunc (ReauthSettings_PolicyType) Enum
func (x ReauthSettings_PolicyType) Enum() *ReauthSettings_PolicyTypefunc (ReauthSettings_PolicyType) EnumDescriptor
func (ReauthSettings_PolicyType) EnumDescriptor() ([]byte, []int)Deprecated: Use ReauthSettings_PolicyType.Descriptor instead.
func (ReauthSettings_PolicyType) Number
func (x ReauthSettings_PolicyType) Number() protoreflect.EnumNumberfunc (ReauthSettings_PolicyType) String
func (x ReauthSettings_PolicyType) String() stringfunc (ReauthSettings_PolicyType) Type
func (ReauthSettings_PolicyType) Type() protoreflect.EnumTypeResetIdentityAwareProxyClientSecretRequest
type ResetIdentityAwareProxyClientSecretRequest struct {
// Required. Name of the Identity Aware Proxy client to that will have its
// secret reset. In the following format:
// projects/{project_number/id}/brands/{brand}/identityAwareProxyClients/{client_id}.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The request sent to ResetIdentityAwareProxyClientSecret.
func (*ResetIdentityAwareProxyClientSecretRequest) Descriptor
func (*ResetIdentityAwareProxyClientSecretRequest) Descriptor() ([]byte, []int)Deprecated: Use ResetIdentityAwareProxyClientSecretRequest.ProtoReflect.Descriptor instead.
func (*ResetIdentityAwareProxyClientSecretRequest) GetName
func (x *ResetIdentityAwareProxyClientSecretRequest) GetName() stringfunc (*ResetIdentityAwareProxyClientSecretRequest) ProtoMessage
func (*ResetIdentityAwareProxyClientSecretRequest) ProtoMessage()func (*ResetIdentityAwareProxyClientSecretRequest) ProtoReflect
func (x *ResetIdentityAwareProxyClientSecretRequest) ProtoReflect() protoreflect.Messagefunc (*ResetIdentityAwareProxyClientSecretRequest) Reset
func (x *ResetIdentityAwareProxyClientSecretRequest) Reset()func (*ResetIdentityAwareProxyClientSecretRequest) String
func (x *ResetIdentityAwareProxyClientSecretRequest) String() stringTunnelDestGroup
type TunnelDestGroup struct {
// Identifier. Identifier for the TunnelDestGroup. Must be unique within the
// project and contain only lower case letters (a-z) and dashes (-).
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Unordered list. List of CIDRs that this group applies to.
Cidrs []string `protobuf:"bytes,2,rep,name=cidrs,proto3" json:"cidrs,omitempty"`
// Optional. Unordered list. List of FQDNs that this group applies to.
Fqdns []string `protobuf:"bytes,3,rep,name=fqdns,proto3" json:"fqdns,omitempty"`
// contains filtered or unexported fields
}A TunnelDestGroup.
func (*TunnelDestGroup) Descriptor
func (*TunnelDestGroup) Descriptor() ([]byte, []int)Deprecated: Use TunnelDestGroup.ProtoReflect.Descriptor instead.
func (*TunnelDestGroup) GetCidrs
func (x *TunnelDestGroup) GetCidrs() []stringfunc (*TunnelDestGroup) GetFqdns
func (x *TunnelDestGroup) GetFqdns() []stringfunc (*TunnelDestGroup) GetName
func (x *TunnelDestGroup) GetName() stringfunc (*TunnelDestGroup) ProtoMessage
func (*TunnelDestGroup) ProtoMessage()func (*TunnelDestGroup) ProtoReflect
func (x *TunnelDestGroup) ProtoReflect() protoreflect.Messagefunc (*TunnelDestGroup) Reset
func (x *TunnelDestGroup) Reset()func (*TunnelDestGroup) String
func (x *TunnelDestGroup) String() stringUnimplementedIdentityAwareProxyAdminServiceServer
type UnimplementedIdentityAwareProxyAdminServiceServer struct {
}UnimplementedIdentityAwareProxyAdminServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedIdentityAwareProxyAdminServiceServer) CreateTunnelDestGroup
func (UnimplementedIdentityAwareProxyAdminServiceServer) CreateTunnelDestGroup(context.Context, *CreateTunnelDestGroupRequest) (*TunnelDestGroup, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) DeleteTunnelDestGroup
func (UnimplementedIdentityAwareProxyAdminServiceServer) DeleteTunnelDestGroup(context.Context, *DeleteTunnelDestGroupRequest) (*emptypb.Empty, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) GetIamPolicy
func (UnimplementedIdentityAwareProxyAdminServiceServer) GetIamPolicy(context.Context, *iampb.GetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) GetIapSettings
func (UnimplementedIdentityAwareProxyAdminServiceServer) GetIapSettings(context.Context, *GetIapSettingsRequest) (*IapSettings, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) GetTunnelDestGroup
func (UnimplementedIdentityAwareProxyAdminServiceServer) GetTunnelDestGroup(context.Context, *GetTunnelDestGroupRequest) (*TunnelDestGroup, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) ListTunnelDestGroups
func (UnimplementedIdentityAwareProxyAdminServiceServer) ListTunnelDestGroups(context.Context, *ListTunnelDestGroupsRequest) (*ListTunnelDestGroupsResponse, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) SetIamPolicy
func (UnimplementedIdentityAwareProxyAdminServiceServer) SetIamPolicy(context.Context, *iampb.SetIamPolicyRequest) (*iampb.Policy, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) TestIamPermissions
func (UnimplementedIdentityAwareProxyAdminServiceServer) TestIamPermissions(context.Context, *iampb.TestIamPermissionsRequest) (*iampb.TestIamPermissionsResponse, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) UpdateIapSettings
func (UnimplementedIdentityAwareProxyAdminServiceServer) UpdateIapSettings(context.Context, *UpdateIapSettingsRequest) (*IapSettings, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) UpdateTunnelDestGroup
func (UnimplementedIdentityAwareProxyAdminServiceServer) UpdateTunnelDestGroup(context.Context, *UpdateTunnelDestGroupRequest) (*TunnelDestGroup, error)func (UnimplementedIdentityAwareProxyAdminServiceServer) ValidateIapAttributeExpression
func (UnimplementedIdentityAwareProxyAdminServiceServer) ValidateIapAttributeExpression(context.Context, *ValidateIapAttributeExpressionRequest) (*ValidateIapAttributeExpressionResponse, error)UnimplementedIdentityAwareProxyOAuthServiceServer
type UnimplementedIdentityAwareProxyOAuthServiceServer struct {
}UnimplementedIdentityAwareProxyOAuthServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedIdentityAwareProxyOAuthServiceServer) CreateBrand
func (UnimplementedIdentityAwareProxyOAuthServiceServer) CreateBrand(context.Context, *CreateBrandRequest) (*Brand, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) CreateIdentityAwareProxyClient
func (UnimplementedIdentityAwareProxyOAuthServiceServer) CreateIdentityAwareProxyClient(context.Context, *CreateIdentityAwareProxyClientRequest) (*IdentityAwareProxyClient, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) DeleteIdentityAwareProxyClient
func (UnimplementedIdentityAwareProxyOAuthServiceServer) DeleteIdentityAwareProxyClient(context.Context, *DeleteIdentityAwareProxyClientRequest) (*emptypb.Empty, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) GetBrand
func (UnimplementedIdentityAwareProxyOAuthServiceServer) GetBrand(context.Context, *GetBrandRequest) (*Brand, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) GetIdentityAwareProxyClient
func (UnimplementedIdentityAwareProxyOAuthServiceServer) GetIdentityAwareProxyClient(context.Context, *GetIdentityAwareProxyClientRequest) (*IdentityAwareProxyClient, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) ListBrands
func (UnimplementedIdentityAwareProxyOAuthServiceServer) ListBrands(context.Context, *ListBrandsRequest) (*ListBrandsResponse, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) ListIdentityAwareProxyClients
func (UnimplementedIdentityAwareProxyOAuthServiceServer) ListIdentityAwareProxyClients(context.Context, *ListIdentityAwareProxyClientsRequest) (*ListIdentityAwareProxyClientsResponse, error)func (UnimplementedIdentityAwareProxyOAuthServiceServer) ResetIdentityAwareProxyClientSecret
func (UnimplementedIdentityAwareProxyOAuthServiceServer) ResetIdentityAwareProxyClientSecret(context.Context, *ResetIdentityAwareProxyClientSecretRequest) (*IdentityAwareProxyClient, error)UnsafeIdentityAwareProxyAdminServiceServer
type UnsafeIdentityAwareProxyAdminServiceServer interface {
// contains filtered or unexported methods
}UnsafeIdentityAwareProxyAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityAwareProxyAdminServiceServer will result in compilation errors.
UnsafeIdentityAwareProxyOAuthServiceServer
type UnsafeIdentityAwareProxyOAuthServiceServer interface {
// contains filtered or unexported methods
}UnsafeIdentityAwareProxyOAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityAwareProxyOAuthServiceServer will result in compilation errors.
UpdateIapSettingsRequest
type UpdateIapSettingsRequest struct {
// Required. The new values for the IAP settings to be updated.
// Authorization: Requires the `updateSettings` permission for the associated
// resource.
IapSettings *IapSettings `protobuf:"bytes,1,opt,name=iap_settings,json=iapSettings,proto3" json:"iap_settings,omitempty"`
// The field mask specifying which IAP settings should be updated.
// If omitted, then all of the settings are updated. See
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
//
// Note: All IAP reauth settings must always be set together, using the
// field mask: `iapSettings.accessSettings.reauthSettings`.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The request sent to UpdateIapSettings.
func (*UpdateIapSettingsRequest) Descriptor
func (*UpdateIapSettingsRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateIapSettingsRequest.ProtoReflect.Descriptor instead.
func (*UpdateIapSettingsRequest) GetIapSettings
func (x *UpdateIapSettingsRequest) GetIapSettings() *IapSettingsfunc (*UpdateIapSettingsRequest) GetUpdateMask
func (x *UpdateIapSettingsRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateIapSettingsRequest) ProtoMessage
func (*UpdateIapSettingsRequest) ProtoMessage()func (*UpdateIapSettingsRequest) ProtoReflect
func (x *UpdateIapSettingsRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateIapSettingsRequest) Reset
func (x *UpdateIapSettingsRequest) Reset()func (*UpdateIapSettingsRequest) String
func (x *UpdateIapSettingsRequest) String() stringUpdateTunnelDestGroupRequest
type UpdateTunnelDestGroupRequest struct {
// Required. The new values for the TunnelDestGroup.
TunnelDestGroup *TunnelDestGroup `protobuf:"bytes,1,opt,name=tunnel_dest_group,json=tunnelDestGroup,proto3" json:"tunnel_dest_group,omitempty"`
// A field mask that specifies which IAP settings to update.
// If omitted, then all of the settings are updated. See
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The request to UpdateTunnelDestGroup.
func (*UpdateTunnelDestGroupRequest) Descriptor
func (*UpdateTunnelDestGroupRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateTunnelDestGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateTunnelDestGroupRequest) GetTunnelDestGroup
func (x *UpdateTunnelDestGroupRequest) GetTunnelDestGroup() *TunnelDestGroupfunc (*UpdateTunnelDestGroupRequest) GetUpdateMask
func (x *UpdateTunnelDestGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateTunnelDestGroupRequest) ProtoMessage
func (*UpdateTunnelDestGroupRequest) ProtoMessage()func (*UpdateTunnelDestGroupRequest) ProtoReflect
func (x *UpdateTunnelDestGroupRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateTunnelDestGroupRequest) Reset
func (x *UpdateTunnelDestGroupRequest) Reset()func (*UpdateTunnelDestGroupRequest) String
func (x *UpdateTunnelDestGroupRequest) String() stringValidateIapAttributeExpressionRequest
type ValidateIapAttributeExpressionRequest struct {
// Required. The resource name of the IAP protected resource.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. User input string expression. Should be of the form
// `attributes.saml_attributes.filter(attribute, attribute.name in
// ['{attribute_name}', '{attribute_name}'])`
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
// contains filtered or unexported fields
}Request sent to IAP Expression Linter endpoint.
func (*ValidateIapAttributeExpressionRequest) Descriptor
func (*ValidateIapAttributeExpressionRequest) Descriptor() ([]byte, []int)Deprecated: Use ValidateIapAttributeExpressionRequest.ProtoReflect.Descriptor instead.
func (*ValidateIapAttributeExpressionRequest) GetExpression
func (x *ValidateIapAttributeExpressionRequest) GetExpression() stringfunc (*ValidateIapAttributeExpressionRequest) GetName
func (x *ValidateIapAttributeExpressionRequest) GetName() stringfunc (*ValidateIapAttributeExpressionRequest) ProtoMessage
func (*ValidateIapAttributeExpressionRequest) ProtoMessage()func (*ValidateIapAttributeExpressionRequest) ProtoReflect
func (x *ValidateIapAttributeExpressionRequest) ProtoReflect() protoreflect.Messagefunc (*ValidateIapAttributeExpressionRequest) Reset
func (x *ValidateIapAttributeExpressionRequest) Reset()func (*ValidateIapAttributeExpressionRequest) String
func (x *ValidateIapAttributeExpressionRequest) String() stringValidateIapAttributeExpressionResponse
type ValidateIapAttributeExpressionResponse struct {
// contains filtered or unexported fields
}IAP Expression Linter endpoint returns empty response body.
func (*ValidateIapAttributeExpressionResponse) Descriptor
func (*ValidateIapAttributeExpressionResponse) Descriptor() ([]byte, []int)Deprecated: Use ValidateIapAttributeExpressionResponse.ProtoReflect.Descriptor instead.
func (*ValidateIapAttributeExpressionResponse) ProtoMessage
func (*ValidateIapAttributeExpressionResponse) ProtoMessage()func (*ValidateIapAttributeExpressionResponse) ProtoReflect
func (x *ValidateIapAttributeExpressionResponse) ProtoReflect() protoreflect.Messagefunc (*ValidateIapAttributeExpressionResponse) Reset
func (x *ValidateIapAttributeExpressionResponse) Reset()func (*ValidateIapAttributeExpressionResponse) String
func (x *ValidateIapAttributeExpressionResponse) String() stringWorkforceIdentitySettings
type WorkforceIdentitySettings struct {
// The workforce pool resources. Only one workforce pool is accepted.
WorkforcePools []string `protobuf:"bytes,1,rep,name=workforce_pools,json=workforcePools,proto3" json:"workforce_pools,omitempty"`
// OAuth 2.0 settings for IAP to perform OIDC flow with workforce identity
// federation services.
Oauth2 *OAuth2 `protobuf:"bytes,2,opt,name=oauth2,proto3" json:"oauth2,omitempty"`
// contains filtered or unexported fields
}WorkforceIdentitySettings allows customers to configure workforce pools and OAuth 2.0 settings to gate their applications using a third-party IdP with access control.
func (*WorkforceIdentitySettings) Descriptor
func (*WorkforceIdentitySettings) Descriptor() ([]byte, []int)Deprecated: Use WorkforceIdentitySettings.ProtoReflect.Descriptor instead.
func (*WorkforceIdentitySettings) GetOauth2
func (x *WorkforceIdentitySettings) GetOauth2() *OAuth2func (*WorkforceIdentitySettings) GetWorkforcePools
func (x *WorkforceIdentitySettings) GetWorkforcePools() []stringfunc (*WorkforceIdentitySettings) ProtoMessage
func (*WorkforceIdentitySettings) ProtoMessage()func (*WorkforceIdentitySettings) ProtoReflect
func (x *WorkforceIdentitySettings) ProtoReflect() protoreflect.Messagefunc (*WorkforceIdentitySettings) Reset
func (x *WorkforceIdentitySettings) Reset()func (*WorkforceIdentitySettings) String
func (x *WorkforceIdentitySettings) String() string