File tree Expand file tree Collapse file tree 15 files changed +91
-70
lines changed Expand file tree Collapse file tree 15 files changed +91
-70
lines changed Original file line number Diff line number Diff line change 1
1
## PR summary
2
2
<!-- please include a brief summary of the changes in this PR -->
3
3
4
- ** Fixes:** <! -- link to issue -->
5
4
6
5
## PR Checklist
7
6
Please make sure that your PR fulfills the following requirements:
8
7
- [ ] The commit message follows the [ Angular Commit Message Guidelines] ( https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines ) .
9
8
- [ ] Tests for the changes have been added (for bug fixes / features)
10
9
- [ ] Docs have been added / updated (for bug fixes / features)
11
10
12
- ## PR Type
13
- <!-- Please check the one that applies to this PR using "x". -->
14
- - [ ] Bugfix
15
- - [ ] Feature
16
- - [ ] Code style update (formatting, local variables)
17
- - [ ] Refactoring (no functional changes, no api changes)
18
- - [ ] New tests
19
- - [ ] Build/CI related changes
20
- - [ ] Documentation content changes
21
- - [ ] Other (please describe)
22
-
23
- ## What is the current behavior?
24
- <!-- Please describe the current behavior that you are modifying. -->
25
-
26
- ## What is the new behavior?
27
- <!-- Please describe the new behavior after your change. -->
11
+ ## Current vs new behavior
12
+ <!-- Please describe the current behavior that you are modifying and the new behavior. -->
28
13
29
14
## Does this PR introduce a breaking change?
30
15
- [ ] Yes
Original file line number Diff line number Diff line change @@ -24,5 +24,8 @@ test-unit:
24
24
test-int :
25
25
python -m pytest test/integration
26
26
27
+ test-examples :
28
+ python -m pytest examples
29
+
27
30
lint :
28
31
./pylint.sh
Original file line number Diff line number Diff line change 26
26
#
27
27
# This file provides an example of how to use the Case Management service.
28
28
#
29
+ # The following configuration properties are assumed to be defined:
30
+ #
29
31
# CASE_MANAGEMENT_URL=<service url>
30
- # CASE_MANAGEMENT_AUTHTYPE=iam
31
- # CASE_MANAGEMENT_APIKEY=<IAM apikey>
32
+ # CASE_MANAGEMENT_AUTH_TYPE=iam
32
33
# CASE_MANAGEMENT_AUTH_URL=<IAM token service URL - omit this if using the production environment>
33
- # CASE_MANAGEMENT_RESOURCE_CRN=<cloud resource name>
34
+ # CASE_MANAGEMENT_APIKEY=<IAM apikey>
35
+ # CASE_MANAGEMENT_RESOURCE_CRN=<CRN of resource to use in examples>
36
+ #
37
+ # These configuration properties can be exported as environment variables, or stored
38
+ # in a configuration file and then:
39
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
34
40
#
35
-
36
- # Config file name
37
41
config_file = 'case_management.env'
38
42
39
43
case_management_service = None
40
-
41
44
config = None
42
-
43
45
case_number = None
44
46
attachment_id = None
45
47
resource_crn = None
Original file line number Diff line number Diff line change 22
22
from ibm_cloud_sdk_core import ApiException , read_external_sources
23
23
from ibm_platform_services .configuration_governance_v1 import *
24
24
25
- # Config file name
25
+ #
26
+ # This file provides an example of how to use the Configuration Governance service.
27
+ #
28
+ # The following configuration properties are assumed to be defined:
29
+ #
30
+ # CONFIGURATION_GOVERNANCE_URL=<service url>
31
+ # CONFIGURATION_GOVERNANCE_AUTHTYPE=iam
32
+ # CONFIGURATION_GOVERNANCE_APIKEY=<IAM api key of user with authority to create rules>
33
+ # CONFIGURATION_GOVERNANCE_AUTH_URL=<IAM token service URL - omit this if using the production environment>
34
+ # CONFIGURATION_GOVERNANCE_ACCOUNT_ID=<the id of the account under which rules/attachments should be created>
35
+ # CONFIGURATION_GOVERNANCE_EXAMPLE_SERVICE_NAME=<the name of the service to be associated with rule>
36
+ # CONFIGURATION_GOVERNANCE_ENTERPRISE_SCOPE_ID=<the id of the "enterprise" scope to be used in the examples>
37
+ # CONFIGURATION_GOVERNANCE_SUBACCT_SCOPE_ID=<the id of the "leaf account" scope to be used in the examples>
38
+ #
39
+ # These configuration properties can be exported as environment variables, or stored
40
+ # in a configuration file and then:
41
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
42
+ #
26
43
config_file = 'configuration_governance.env'
27
44
28
45
configuration_governance_service = None
Original file line number Diff line number Diff line change 25
25
#
26
26
# This file provides an example of how to use the Enterprise Billing Units service.
27
27
#
28
- # The following configuration properties are assumed to be defined in the external configuration file:
28
+ # The following configuration properties are assumed to be defined:
29
+ #
29
30
# ENTERPRISE_BILLING_UNITS_URL=<service url>
30
31
# ENTERPRISE_BILLING_UNITS_AUTHTYPE=iam
31
32
# ENTERPRISE_BILLING_UNITS_APIKEY=<your iam apikey>
32
33
# ENTERPRISE_BILLING_UNITS_AUTH_URL=<IAM token service URL - omit this if using the production environment>
33
34
# ENTERPRISE_BILLING_UNITS_ENTERPRISE_ID=<id of enterprise to use for examples>
34
35
# ENTERPRISE_BILLING_UNITS_BILLING_UNIT_ID=<id of billing unit to use for examples>
35
36
#
36
- # Config file name
37
+ # These configuration properties can be exported as environment variables, or stored
38
+ # in a configuration file and then:
39
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
40
+ #
37
41
config_file = 'enterprise_billing_units.env'
38
42
39
43
enterprise_billing_units_service = None
Original file line number Diff line number Diff line change 23
23
from ibm_platform_services .enterprise_usage_reports_v1 import *
24
24
25
25
#
26
- # This file provides an example of how to use the Usage Reports service.
26
+ # This file provides an example of how to use the Enterprise Usage Reports service.
27
27
#
28
28
# The following configuration properties are assumed to be defined:
29
29
# ENTERPRISE_USAGE_REPORTS_URL=<service url>
36
36
# ENTERPRISE_USAGE_REPORTS_BILLING_MONTH=<the billing month (yyyy-mm) for which usage info will be retrieved>
37
37
#
38
38
# These configuration properties can be exported as environment variables, or stored
39
- # in a "credentials" file and then:
40
- # export IBM_CREDENTIALS_FILE=<name of credentials file>
39
+ # in a configuration file and then:
40
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
41
41
#
42
-
43
- # Config file name
44
42
config_file = 'enterprise_usage_reports.env'
45
43
46
44
enterprise_usage_reports_service = None
Original file line number Diff line number Diff line change 26
26
#
27
27
# This file provides an example of how to use the Global Catalog service.
28
28
#
29
+ # The following configuration properties are assumed to be defined:
30
+ #
29
31
# GLOBAL_CATALOG_URL=<service url>
30
32
# GLOBAL_CATALOG_AUTH_TYPE=iam
31
33
# GLOBAL_CATALOG_APIKEY=<IAM apikey>
32
34
# GLOBAL_CATALOG_AUTH_URL=<IAM token service URL - omit this if using the production environment>
33
35
#
34
-
35
- # Config file name
36
+ # These configuration properties can be exported as environment variables, or stored
37
+ # in a configuration file and then:
38
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
39
+ #
36
40
config_file = 'global_catalog.env'
37
41
38
42
global_catalog_service = None
Original file line number Diff line number Diff line change 21
21
from ibm_cloud_sdk_core import ApiException , read_external_sources
22
22
from ibm_platform_services .global_search_v2 import *
23
23
24
- # This file provides an example of how to use the Global Tagging service.
24
+ #
25
+ # This file provides an example of how to use the Global Search service.
26
+ #
27
+ # The following configuration properties are assumed to be defined:
25
28
#
26
29
# The following configuration properties are assumed to be defined in the external configuration file:
27
- # GLOBAL_TAGGING_URL=<service url>
28
- # GLOBAL_TAGGING_AUTHTYPE=iam
29
- # GLOBAL_TAGGING_APIKEY=<IAM api key>
30
- # GLOBAL_TAGGING_AUTH_URL=<IAM token service URL - omit this if using the production environment>
31
- # GLOBAL_TAGGING_RESOURCE_CRN=<the crn of the resource to be used in the examples>
32
-
33
- # Config file name
30
+ # GLOBAL_SEARCH_URL=<service url>
31
+ # GLOBAL_SEARCH_AUTHTYPE=iam
32
+ # GLOBAL_SEARCH_APIKEY=<IAM api key>
33
+ # GLOBAL_SEARCH_AUTH_URL=<IAM token service URL - omit this if using the production environment>
34
+ #
35
+ # These configuration properties can be exported as environment variables, or stored
36
+ # in a configuration file and then:
37
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
38
+ #
34
39
config_file = 'global_search.env'
35
40
36
41
global_search_service = None
Original file line number Diff line number Diff line change 21
21
from ibm_cloud_sdk_core import ApiException , read_external_sources
22
22
from ibm_platform_services .global_tagging_v1 import *
23
23
24
+ #
24
25
# This file provides an example of how to use the Global Tagging service.
25
26
#
26
- # The following configuration properties are assumed to be defined in the external configuration file:
27
+ # The following configuration properties are assumed to be defined:
28
+ #
27
29
# GLOBAL_TAGGING_URL=<service url>
28
30
# GLOBAL_TAGGING_AUTHTYPE=iam
29
31
# GLOBAL_TAGGING_APIKEY=<IAM api key>
30
32
# GLOBAL_TAGGING_AUTH_URL=<IAM token service URL - omit this if using the production environment>
31
33
# GLOBAL_TAGGING_RESOURCE_CRN=<the crn of the resource to be used in the examples>
32
-
33
- # Config file name
34
+ #
35
+ # These configuration properties can be exported as environment variables, or stored
36
+ # in a configuration file and then:
37
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
38
+ #
34
39
config_file = 'global_tagging.env'
35
40
36
41
global_tagging_service = None
Original file line number Diff line number Diff line change 25
25
#
26
26
# This file provides an example of how to use the IAM Access Groups service.
27
27
#
28
- # The following configuration properties are assumed to be defined in the external configuration file:
28
+ # The following configuration properties are assumed to be defined:
29
+ #
29
30
# IAM_ACCESS_GROUPS_URL=<service url>
30
31
# IAM_ACCESS_GROUPS_AUTHTYPE=iam
31
32
# IAM_ACCESS_GROUPS_APIKEY=<your iam apikey>
32
33
# IAM_ACCESS_GROUPS_AUTH_URL=<IAM token service URL - omit this if using the production environment>
33
34
# IAM_ACCESS_GROUPS_TEST_ACCOUNT_ID=<id of an account used for testing>
34
35
#
35
-
36
- # Config file name
36
+ # These configuration properties can be exported as environment variables, or stored
37
+ # in a configuration file and then:
38
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
39
+ #
37
40
config_file = 'iam_access_groups.env'
38
41
39
42
iam_access_groups_service = None
Original file line number Diff line number Diff line change 24
24
from ibm_platform_services .iam_identity_v1 import *
25
25
26
26
#
27
- # This file provides an example of how to use the IAM-IDENTITY service.
27
+ # This file provides an example of how to use the IAM Identity service.
28
28
#
29
29
# The following configuration properties are assumed to be defined:
30
30
#
36
36
# IAM_IDENTITY_IAM_ID=<IAM ID which is unique to the User account>
37
37
#
38
38
# These configuration properties can be exported as environment variables, or stored
39
- # in a "credentials" file and then:
40
- # export IBM_CREDENTIALS_FILE=<name of credentials file>
39
+ # in a configuration file and then:
40
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
41
41
#
42
-
43
- # Config file name
44
42
config_file = 'iam_identity.env'
45
43
46
44
iam_identity_service = None
Original file line number Diff line number Diff line change 22
22
from ibm_cloud_sdk_core import ApiException , read_external_sources
23
23
from ibm_platform_services .open_service_broker_v1 import *
24
24
25
- # Config file name
26
- config_file = 'open_service_broker.env'
27
-
28
25
#
29
26
# This file provides an example of how to use the Open Service Broker service.
30
27
#
44
41
# OPEN_SERVICE_BROKER_ORGANIZATION_GUID=<The IBM Cloud platform GUID for the organization under which the service instance is to be provisioned>
45
42
#
46
43
# These configuration properties can be exported as environment variables, or stored
47
- # in a "credentials" file and then:
48
- # export IBM_CREDENTIALS_FILE=<name of credentials file>
44
+ # in a configuration file and then:
45
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
49
46
#
47
+ config_file = 'open_service_broker.env'
50
48
51
49
open_service_broker_service = None
52
50
Original file line number Diff line number Diff line change 23
23
from ibm_cloud_sdk_core import ApiException , read_external_sources
24
24
from ibm_platform_services .resource_controller_v2 import *
25
25
26
- # Config file name
27
- config_file = 'resource_controller.env'
28
-
29
26
#
30
27
# This file provides an example of how to use the Resource Controller service.
31
28
#
42
39
# RESOURCE_CONTROLLER_BINDING_TARGET_CRN=<The CRN of application to bind to in a specific environment>
43
40
#
44
41
# These configuration properties can be exported as environment variables, or stored
45
- # in a "credentials" file and then:
46
- # export IBM_CREDENTIALS_FILE=<name of credentials file>
42
+ # in a configuration file and then:
43
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
47
44
#
45
+ config_file = 'resource_controller.env'
48
46
49
47
resource_controller_service = None
50
48
Original file line number Diff line number Diff line change 25
25
#
26
26
# This file provides an example of how to use the Usage Metering service.
27
27
#
28
- # The following configuration properties are assumed to be defined in the external configuration file:
28
+ # The following configuration properties are assumed to be defined:
29
+ #
29
30
# USAGE_METERING_URL=<service url>
30
31
# USAGE_METERING_AUTHTYPE=iam
31
32
# USAGE_METERING_APIKEY=<your iam apikey>
32
33
# USAGE_METERING_AUTH_URL=<IAM token service URL - omit this if using the production environment>
33
34
#
34
-
35
- # Config file name
35
+ # These configuration properties can be exported as environment variables, or stored
36
+ # in a configuration file and then:
37
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
38
+ #
36
39
config_file = 'usage_metering.env'
37
40
38
41
usage_metering_service = None
Original file line number Diff line number Diff line change 36
36
# USAGE_REPORTS_BILLING_MONTH=<the billing month (yyyy-mm) for which usage info will be retrieved>
37
37
#
38
38
# These configuration properties can be exported as environment variables, or stored
39
- # in a "credentials" file and then:
40
- # export IBM_CREDENTIALS_FILE=<name of credentials file>
39
+ # in a configuration file and then:
40
+ # export IBM_CREDENTIALS_FILE=<name of configuration file>
41
41
#
42
-
43
- # Config file name
44
42
config_file = 'usage_reports.env'
45
43
46
44
usage_reports_service = None
You can’t perform that action at this time.
0 commit comments