-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a00931
commit c2f401d
Showing
5 changed files
with
149 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ resource "azuread_invitation" "example" { | |
user_message_info { | ||
cc_recipients = ["[email protected]"] | ||
customized_message_body = "Hello there! You are invited to join my Azure tenant !" | ||
customised_message_body = "Hello there! You are invited to join my Azure tenant !" | ||
message_language = "en-US" | ||
} | ||
} | ||
|
@@ -42,7 +42,7 @@ resource "azuread_invitation" "example" { | |
The following arguments are supported: | ||
|
||
* `redirect_url` - (Required) URL the user should be redirected to once the invitation is redeemed. | ||
* `send_invitation_message` - (Optional) If `true`, an email wille be sent to the user being invited. Must be set to `true` if a `user_message_info` block is specified. Defaults to `false`. | ||
* `send_invitation_message` - (Optional) If `true`, an email will be sent to the user being invited. Must be set to `true` if a `user_message_info` block is specified. Defaults to `false`. | ||
* `user_display_name` - (Optional) Display name of the user being invited. | ||
* `user_email_address` - (Required) Email address of the user being invited. | ||
* `user_message_info` - (Optional) A `user_message_info` block as documented below, which configures the message being sent to the invited user. `send_invitation_message` must be set to `true` if this block is specified. | ||
|
@@ -52,7 +52,7 @@ The following arguments are supported: | |
`user_message_info` block supports the following: | ||
|
||
* `cc_recipients` - (Optional) Additional recipients the invitation message should be sent to. Currently only 1 additional recipient is supported by Azure. | ||
* `customized_message_body` - (Optional) Customized message body you want to send if you don't want the default message. | ||
* `customised_message_body` - (Optional) Customised message body you want to send if you don't want the default message. | ||
* `message_language` - (Optional) Language the message will be sent in. The value specified must be in ISO 639 format. Defaults to `en-US`. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/Azure/azure-sdk-for-go/services/graphrbac/1.6/graphrbac" | ||
"github.com/manicminer/hamilton/msgraph" | ||
|
||
"github.com/hashicorp/terraform-provider-azuread/internal/common" | ||
) | ||
|
||
type Client struct { | ||
AadClient *graphrbac.UsersClient // We set this as a UsersClient for now because configureClient does not support passing nil as autorest client. | ||
MsClient *msgraph.InvitationsClient | ||
MsClient *msgraph.InvitationsClient | ||
} | ||
|
||
func NewClient(o *common.ClientOptions) *Client { | ||
aadClient := graphrbac.NewUsersClient(o.TenantID) | ||
msClient := msgraph.NewInvitationsClient(o.TenantID) | ||
o.ConfigureClient(&msClient.BaseClient, &aadClient.Client) | ||
o.ConfigureClient(&msClient.BaseClient) | ||
|
||
return &Client{ | ||
AadClient: &aadClient, | ||
MsClient: msClient, | ||
MsClient: msClient, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 0 additions & 157 deletions
157
internal/services/invitations/invitation_resource_msgraph.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.