-
Notifications
You must be signed in to change notification settings - Fork 154
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
feat(apig): add datasource to get basic configurations of the api #4805
Conversation
97b33d8
to
e291cff
Compare
make testacc TEST=./huaweicloud/services/acceptance/apig TESTARGS='-run TestAccDataSourceApiBasicConfigurations_basic' |
* `precise_search` - (Optional, String) Specifies the parameter name for exact matching. | ||
The valid value is `name` or `req_uri`. |
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.
* `precise_search` - (Optional, String) Specifies the parameter name for exact matching. | |
The valid value is `name` or `req_uri`. | |
* `precise_search` - (Optional, String) Specifies the parameter name that you want to match exactly. | |
The valid values are: | |
+ **name**: API name, corresponding to the field `name` in this data source arguments. | |
+ **req_uri**: Request path, corresponding to the field `request_path` in this data source arguments. | |
This parameter takes effect only after the corresponding parameter(s) is(are) set. |
And check whether this parameter can be set to multiple enumerated values, e.g. name,req_uri
.
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.
fixed
* `matching` - The matching mode of the API. | ||
The valid value is `Exact` or `Prefix`. |
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.
If you want to list the enumerated values of the property, write as:
* `matching` - The matching mode of the API. | |
The valid value is `Exact` or `Prefix`. | |
* `matching` - The matching mode of the API. | |
+ **Exact** | |
+ **Prefix** |
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.
fixed
value = length(local.id_filter_result) > 0 && alltrue(local.id_filter_result) | ||
} | ||
|
||
# Filter by name (fuzzy search) |
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.
please test whether the corresponding parameter (name) supports exact match.
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.
fixed
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
make testacc TEST=./huaweicloud/services/acceptance/apig TESTARGS='-run TestAccDataSourceApiBasicConfigurations_basic' |
/approve |
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.
This PR has been approved by: @Lance52259
/approve
/lgtm
What this PR does / why we need it:
Add new datasource to get basci configurations of the api under specified dedicated APIG instance.
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #xxx
Special notes for your reviewer:
Release note:
PR Checklist
Acceptance Steps Performed