-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: azurerm_orbital_spacecraft
#17860
Conversation
jiaweitao001
commented
Aug 3, 2022
- All tests passed.
3613616
to
2bafc11
Compare
norad_id = "12345" | ||
links { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests should be formatted to be readable:
norad_id = "12345" | |
links { | |
norad_id = "12345" | |
links { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will reformat.
} | ||
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | ||
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | ||
title_line = "AQUA" | ||
tags = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | |
title_line = "AQUA" | |
tags = { | |
} | |
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | |
title_line = "AQUA" | |
tags = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will reformat.
norad_id = "12345" | ||
links { | ||
bandwidth_mhz = 100 | ||
center_frequency_mhz = 101 | ||
direction = "Uplink" | ||
polarization = "LHCP" | ||
name = "examplename" | ||
} | ||
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | ||
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | ||
title_line = "AQUA" | ||
tags = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and same for the docs example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will reformat.
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | ||
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just make this a ordered list?
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | |
tle[0] = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle[1] = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 fields are parameters of a spacecraft's orbit, and there will be only 2 lines, the combination of them can point to a certain spacecraft. Making them a list could confuse the user a little bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't think theres a a reason to not make this a type list? as it would be more versatile and allow users to n pass-around an array vs 2 separate strings? min items x, max items 2
i don't think it would be confusing, espically maybe if we rename it to
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | |
two_line_elements[0] = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
two_line_elements[0] = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" |
|
||
--- | ||
|
||
* `tle_line_1` - (Optional) The name of the field in output events used to specify the primary key which insert or update operations are based on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 2 is missing here
how does TLE == name of the field in output events used to specify the primary key which insert or update operations are based on.
could we expand on this and make it mroe clear how these are supposed to be set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out. This description is not accurate, will change.
d0e6d02
to
38dfeca
Compare
38dfeca
to
5a98052
Compare
b800141
to
b8a13ec
Compare
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | ||
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't think theres a a reason to not make this a type list? as it would be more versatile and allow users to n pass-around an array vs 2 separate strings? min items x, max items 2
i don't think it would be confusing, espically maybe if we rename it to
tle_line_1 = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
tle_line_2 = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" | |
two_line_elements[0] = "1 23455U 94089A 97320.90946019 .00000140 00000-0 10191-3 0 2621" | |
two_line_elements[0] = "2 23455 99.0090 272.6745 0008546 223.1686 136.8816 14.11711747148495" |
32790ae
to
132ee95
Compare
Hi @katbyte , changed as suggested. Thanks! |
af5ad8a
to
6e5faaa
Compare
azurerm_spacecraft
in orbital serviceazurerm_spacecraft
} | ||
|
||
func (r SpacecraftResource) ResourceType() string { | ||
return "azurerm_spacecraft" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what other resources will be part of this new service? should we call this resource:
return "azurerm_spacecraft" | |
return "azurerm_orbital_spacecraft" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update.
6e5faaa
to
ce9674f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jiaweitao001 - LGTM 👾
azurerm_spacecraft
azurerm_orbital_spacecraft
This functionality has been released in v3.22.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |