Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resource/Data Source: azurerm_databox_edge_order and azurerm_databox_edge_device #10392

Closed
wants to merge 14 commits into from

Conversation

WodansSon
Copy link
Collaborator

No description provided.

@WodansSon WodansSon changed the title [WIP] New Resource/Datasource: azurerm_databox_edge_order and azurerm_databox_edge_device New Resource/Data Source: azurerm_databox_edge_order and azurerm_databox_edge_device Feb 3, 2021
@WodansSon WodansSon added this to the v2.46.0 milestone Feb 3, 2021
@tombuildsstuff tombuildsstuff modified the milestones: v2.46.0, v2.47.0 Feb 4, 2021
@tombuildsstuff tombuildsstuff modified the milestones: v2.47.0, v2.48.0 Feb 11, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @WodansSon - just have some schema questionss otherwise is looking good

"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
)

func dataSourceDataboxEdgeDevice() *schema.Resource {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is much a reason to include a datasource here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Computed: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we validate this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it is required here as this is a read only field that is returned from the service? 🤷‍♂️

Computed: true,
},

"device_local_capacity": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is local necessary?

Suggested change
"device_local_capacity": {
"device_capacity": {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Computed: true,
},

"device_type": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given there are so man device properties should we put these into a block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
)

func dataSourceDataboxEdgeOrder() *schema.Resource {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is much a reason to include a datasource here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

},
},

"update_date_time": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure this property makes sense in terraform?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a valuable field since it lets the end user know when was the last time the RP made a change to their order. WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thats fair, we generally don't include properties like this in tf thou

MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"address_line1": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just makt this an list which each element being a line?

Suggested change
"address_line1": {
"address": {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

},
},

"delivery_tracking_info": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"delivery_tracking_info": {
"shipment": {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we compromise, shipping_info? 🙂

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about shipment_info or shipment_tracking - shipping seems to be the wrong verb for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additional_order_details": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"additional_order_details": {
"additional_details": {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

},
},

"return_tracking_info": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be

Suggested change
"return_tracking_info": {
"return_shipment": {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went with return_tracking hopes that's ok... it made more sense to me... if you really want me to update this to use shipment I can do that too... 🙂

@WodansSon WodansSon modified the milestones: v2.48.0, v2.49.0 Feb 18, 2021
@WodansSon
Copy link
Collaborator Author

Creating new branch based off master.

@WodansSon WodansSon closed this Feb 25, 2021
@WodansSon WodansSon deleted the nr_databoxedge branch February 25, 2021 09:52
@katbyte
Copy link
Collaborator

katbyte commented Feb 25, 2021

new PR #10730

@ghost
Copy link

ghost commented Feb 26, 2021

This has been released in version 2.49.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.49.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 27, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants