Documentation
¶
Index ¶
- Constants
- func NewMicrosoft365EndpointReferenceDataSource() datasource.DataSource
- type EndpointModel
- type Microsoft365EndpointReferenceDataSource
- func (d *Microsoft365EndpointReferenceDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *Microsoft365EndpointReferenceDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *Microsoft365EndpointReferenceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *Microsoft365EndpointReferenceDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, ...)
- type Microsoft365EndpointReferenceDataSourceModel
- type Microsoft365EndpointResponse
Constants ¶
View Source
const ( DataSourceName = "microsoft365_utility_microsoft_365_endpoint_reference" ReadTimeout = 180 )
Variables ¶
This section is empty.
Functions ¶
func NewMicrosoft365EndpointReferenceDataSource ¶
func NewMicrosoft365EndpointReferenceDataSource() datasource.DataSource
Types ¶
type EndpointModel ¶
type EndpointModel struct {
Id types.Int64 `tfsdk:"id"`
ServiceArea types.String `tfsdk:"service_area"`
ServiceAreaDisplayName types.String `tfsdk:"service_area_display_name"`
Urls types.List `tfsdk:"urls"`
IPs types.List `tfsdk:"ips"`
TCPPorts types.String `tfsdk:"tcp_ports"`
UDPPorts types.String `tfsdk:"udp_ports"`
ExpressRoute types.Bool `tfsdk:"express_route"`
Category types.String `tfsdk:"category"`
Required types.Bool `tfsdk:"required"`
Notes types.String `tfsdk:"notes"`
}
EndpointModel represents a single Microsoft 365 endpoint set
type Microsoft365EndpointReferenceDataSource ¶
type Microsoft365EndpointReferenceDataSource struct{}
func (*Microsoft365EndpointReferenceDataSource) Configure ¶
func (d *Microsoft365EndpointReferenceDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure implements the DataSourceWithConfigure interface. For utility datasources that fetch data from external APIs (not Microsoft Graph), this method doesn't need to extract Microsoft Graph clients from ProviderData. However, it's required for interface compliance and maintains consistency across datasources.
func (*Microsoft365EndpointReferenceDataSource) Metadata ¶
func (d *Microsoft365EndpointReferenceDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*Microsoft365EndpointReferenceDataSource) Read ¶
func (d *Microsoft365EndpointReferenceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*Microsoft365EndpointReferenceDataSource) Schema ¶
func (d *Microsoft365EndpointReferenceDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type Microsoft365EndpointReferenceDataSourceModel ¶
type Microsoft365EndpointReferenceDataSourceModel struct {
Id types.String `tfsdk:"id"`
Instance types.String `tfsdk:"instance"`
ServiceAreas types.Set `tfsdk:"service_areas"`
Categories types.Set `tfsdk:"categories"`
RequiredOnly types.Bool `tfsdk:"required_only"`
ExpressRoute types.Bool `tfsdk:"express_route"`
Endpoints types.List `tfsdk:"endpoints"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
Microsoft365EndpointReferenceDataSourceModel describes the Terraform datasource data model
type Microsoft365EndpointResponse ¶
type Microsoft365EndpointResponse struct {
ID int64 `json:"id"`
ServiceArea string `json:"serviceArea"`
ServiceAreaDisplayName string `json:"serviceAreaDisplayName"`
URLs []string `json:"urls,omitempty"`
IPs []string `json:"ips,omitempty"`
TCPPorts string `json:"tcpPorts,omitempty"`
UDPPorts string `json:"udpPorts,omitempty"`
ExpressRoute bool `json:"expressRoute"`
Category string `json:"category"`
Required bool `json:"required"`
Notes string `json:"notes,omitempty"`
}
Microsoft365EndpointResponse represents the JSON response from the Microsoft 365 endpoints API
Click to show internal directories.
Click to hide internal directories.