Skip to content

Commit 830d15d

Browse files
authored
Releasing version 16.0.0
Releasing version 16.0.0
2 parents b453c3b + 6ac275f commit 830d15d

File tree

82 files changed

+1089
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1089
-68
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66

7+
## 16.0.0 - 2020-03-10
8+
### Added
9+
- Support for Events service integration with alerts in the Budgets service
10+
- Support delegation-token auth for all services
11+
12+
### Breaking changes
13+
- The parameters sort_by and lifecycle_state type from Budget service are changed from str to enum
14+
715
## 15.8.0 - 2020-03-03
816
### Added
917
- Support for updating the shape of a Database System in the Database service

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ clean-generate:
6262
pre-doc:
6363
@echo "Rendering doc server to ${DOC_SERVER_URL}"
6464
find . -name \*.go |xargs sed -i '' 's/{{DOC_SERVER_URL}}/${DOC_SERVER_URL}/g'
65-
find . -name \*.go |xargs sed -i '' 's/https:\/\/docs.cloud.oracle.com/${DOC_SERVER_URL}/g'
65+
# Note: This should stay the old docs URL (with us-phoenix-1), because it
66+
# processes go files and changes the old URL into the new URL
67+
find . -name \*.go |xargs sed -i '' 's/https:\/\/docs.us-phoenix-1.oraclecloud.com/${DOC_SERVER_URL}/g'
6668

6769
gen-version:
6870
go generate -x

analytics/analytics_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ func NewAnalyticsClientWithConfigurationProvider(configProvider common.Configura
2929
return
3030
}
3131

32+
return newAnalyticsClientFromBaseClient(baseClient, configProvider)
33+
}
34+
35+
// NewAnalyticsClientWithOboToken Creates a new default Analytics client with the given configuration provider.
36+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
37+
// as well as reading the region
38+
func NewAnalyticsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AnalyticsClient, err error) {
39+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
40+
if err != nil {
41+
return
42+
}
43+
44+
return newAnalyticsClientFromBaseClient(baseClient, configProvider)
45+
}
46+
47+
func newAnalyticsClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client AnalyticsClient, err error) {
3248
client = AnalyticsClient{BaseClient: baseClient}
3349
client.BasePath = "20190331"
3450
err = client.setConfigurationProvider(configProvider)

announcementsservice/announcementsservice_announcement_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ func NewAnnouncementClientWithConfigurationProvider(configProvider common.Config
2929
return
3030
}
3131

32+
return newAnnouncementClientFromBaseClient(baseClient, configProvider)
33+
}
34+
35+
// NewAnnouncementClientWithOboToken Creates a new default Announcement client with the given configuration provider.
36+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
37+
// as well as reading the region
38+
func NewAnnouncementClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AnnouncementClient, err error) {
39+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
40+
if err != nil {
41+
return
42+
}
43+
44+
return newAnnouncementClientFromBaseClient(baseClient, configProvider)
45+
}
46+
47+
func newAnnouncementClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client AnnouncementClient, err error) {
3248
client = AnnouncementClient{BaseClient: baseClient}
3349
client.BasePath = "20180904"
3450
err = client.setConfigurationProvider(configProvider)

apigateway/apigateway_deployment_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ func NewDeploymentClientWithConfigurationProvider(configProvider common.Configur
3131
return
3232
}
3333

34+
return newDeploymentClientFromBaseClient(baseClient, configProvider)
35+
}
36+
37+
// NewDeploymentClientWithOboToken Creates a new default Deployment client with the given configuration provider.
38+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
39+
// as well as reading the region
40+
func NewDeploymentClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client DeploymentClient, err error) {
41+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
42+
if err != nil {
43+
return
44+
}
45+
46+
return newDeploymentClientFromBaseClient(baseClient, configProvider)
47+
}
48+
49+
func newDeploymentClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client DeploymentClient, err error) {
3450
client = DeploymentClient{BaseClient: baseClient}
3551
client.BasePath = "20190501"
3652
err = client.setConfigurationProvider(configProvider)

apigateway/apigateway_gateway_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ func NewGatewayClientWithConfigurationProvider(configProvider common.Configurati
3131
return
3232
}
3333

34+
return newGatewayClientFromBaseClient(baseClient, configProvider)
35+
}
36+
37+
// NewGatewayClientWithOboToken Creates a new default Gateway client with the given configuration provider.
38+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
39+
// as well as reading the region
40+
func NewGatewayClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client GatewayClient, err error) {
41+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
42+
if err != nil {
43+
return
44+
}
45+
46+
return newGatewayClientFromBaseClient(baseClient, configProvider)
47+
}
48+
49+
func newGatewayClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client GatewayClient, err error) {
3450
client = GatewayClient{BaseClient: baseClient}
3551
client.BasePath = "20190501"
3652
err = client.setConfigurationProvider(configProvider)

apigateway/apigateway_workrequests_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ func NewWorkRequestsClientWithConfigurationProvider(configProvider common.Config
3131
return
3232
}
3333

34+
return newWorkRequestsClientFromBaseClient(baseClient, configProvider)
35+
}
36+
37+
// NewWorkRequestsClientWithOboToken Creates a new default WorkRequests client with the given configuration provider.
38+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
39+
// as well as reading the region
40+
func NewWorkRequestsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client WorkRequestsClient, err error) {
41+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
42+
if err != nil {
43+
return
44+
}
45+
46+
return newWorkRequestsClientFromBaseClient(baseClient, configProvider)
47+
}
48+
49+
func newWorkRequestsClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client WorkRequestsClient, err error) {
3450
client = WorkRequestsClient{BaseClient: baseClient}
3551
client.BasePath = "20190501"
3652
err = client.setConfigurationProvider(configProvider)

applicationmigration/applicationmigration_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ func NewApplicationMigrationClientWithConfigurationProvider(configProvider commo
2929
return
3030
}
3131

32+
return newApplicationMigrationClientFromBaseClient(baseClient, configProvider)
33+
}
34+
35+
// NewApplicationMigrationClientWithOboToken Creates a new default ApplicationMigration client with the given configuration provider.
36+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
37+
// as well as reading the region
38+
func NewApplicationMigrationClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ApplicationMigrationClient, err error) {
39+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
40+
if err != nil {
41+
return
42+
}
43+
44+
return newApplicationMigrationClientFromBaseClient(baseClient, configProvider)
45+
}
46+
47+
func newApplicationMigrationClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ApplicationMigrationClient, err error) {
3248
client = ApplicationMigrationClient{BaseClient: baseClient}
3349
client.BasePath = "20191031"
3450
err = client.setConfigurationProvider(configProvider)

audit/audit_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ func NewAuditClientWithConfigurationProvider(configProvider common.Configuration
3131
return
3232
}
3333

34+
return newAuditClientFromBaseClient(baseClient, configProvider)
35+
}
36+
37+
// NewAuditClientWithOboToken Creates a new default Audit client with the given configuration provider.
38+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
39+
// as well as reading the region
40+
func NewAuditClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AuditClient, err error) {
41+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
42+
if err != nil {
43+
return
44+
}
45+
46+
return newAuditClientFromBaseClient(baseClient, configProvider)
47+
}
48+
49+
func newAuditClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client AuditClient, err error) {
3450
client = AuditClient{BaseClient: baseClient}
3551
client.BasePath = "20190901"
3652
err = client.setConfigurationProvider(configProvider)

autoscaling/autoscaling_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ func NewAutoScalingClientWithConfigurationProvider(configProvider common.Configu
3030
return
3131
}
3232

33+
return newAutoScalingClientFromBaseClient(baseClient, configProvider)
34+
}
35+
36+
// NewAutoScalingClientWithOboToken Creates a new default AutoScaling client with the given configuration provider.
37+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
38+
// as well as reading the region
39+
func NewAutoScalingClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client AutoScalingClient, err error) {
40+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
41+
if err != nil {
42+
return
43+
}
44+
45+
return newAutoScalingClientFromBaseClient(baseClient, configProvider)
46+
}
47+
48+
func newAutoScalingClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client AutoScalingClient, err error) {
3349
client = AutoScalingClient{BaseClient: baseClient}
3450
client.BasePath = "20181001"
3551
err = client.setConfigurationProvider(configProvider)

budget/alert_rule_summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type AlertRuleSummary struct {
3737
// The current state of the alert rule.
3838
LifecycleState LifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
3939

40-
// The audience that will received the alert when it triggers.
40+
// The audience that will receive the alert when it triggers.
4141
Recipients *string `mandatory:"true" json:"recipients"`
4242

4343
// Time when budget was created

budget/budget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type Budget struct {
5555

5656
// The list of targets on which the budget is applied.
5757
// If targetType is "COMPARTMENT", targets contains list of compartment OCIDs.
58-
// If targetType is "TAG", targets contains list of tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
58+
// If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
5959
Targets []string `mandatory:"false" json:"targets"`
6060

6161
// Version of the budget. Starts from 1 and increments by 1.

budget/budget_client.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ func NewBudgetClientWithConfigurationProvider(configProvider common.Configuratio
2929
return
3030
}
3131

32+
return newBudgetClientFromBaseClient(baseClient, configProvider)
33+
}
34+
35+
// NewBudgetClientWithOboToken Creates a new default Budget client with the given configuration provider.
36+
// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
37+
// as well as reading the region
38+
func NewBudgetClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client BudgetClient, err error) {
39+
baseClient, err := common.NewClientWithOboToken(configProvider, oboToken)
40+
if err != nil {
41+
return
42+
}
43+
44+
return newBudgetClientFromBaseClient(baseClient, configProvider)
45+
}
46+
47+
func newBudgetClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client BudgetClient, err error) {
3248
client = BudgetClient{BaseClient: baseClient}
3349
client.BasePath = "20190111"
3450
err = client.setConfigurationProvider(configProvider)

budget/budget_summary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type BudgetSummary struct {
5555

5656
// The list of targets on which the budget is applied.
5757
// If targetType is "COMPARTMENT", targets contains list of compartment OCIDs.
58-
// If targetType is "TAG", targets contains list of tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
58+
// If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
5959
Targets []string `mandatory:"false" json:"targets"`
6060

6161
// Version of the budget. Starts from 1 and increments by 1.

budget/create_alert_rule_details.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ type CreateAlertRuleDetails struct {
2727
// The type of threshold.
2828
ThresholdType ThresholdTypeEnum `mandatory:"true" json:"thresholdType"`
2929

30-
// The audience that will received the alert when it triggers.
31-
Recipients *string `mandatory:"true" json:"recipients"`
32-
3330
// The name of the alert rule.
3431
DisplayName *string `mandatory:"false" json:"displayName"`
3532

3633
// The description of the alert rule.
3734
Description *string `mandatory:"false" json:"description"`
3835

36+
// The audience that will receive the alert when it triggers. An empty string is interpreted as null.
37+
Recipients *string `mandatory:"false" json:"recipients"`
38+
3939
// The message to be sent to the recipients when alert rule is triggered.
4040
Message *string `mandatory:"false" json:"message"`
4141

budget/create_budget_details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type CreateBudgetDetails struct {
4242

4343
// The list of targets on which the budget is applied.
4444
// If targetType is "COMPARTMENT", targets contains list of compartment OCIDs.
45-
// If targetType is "TAG", targets contains list of tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
45+
// If targetType is "TAG", targets contains list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".
4646
// Curerntly, the array should contain EXACT ONE item.
4747
Targets []string `mandatory:"false" json:"targets"`
4848

budget/list_alert_rules_request_response.go

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ type ListAlertRulesRequest struct {
2626
// The field to sort by. If not specified, the default is timeCreated.
2727
// The default sort order for timeCreated is DESC.
2828
// The default sort order for displayName is ASC in alphanumeric order.
29-
SortBy *string `mandatory:"false" contributesTo:"query" name:"sortBy"`
29+
SortBy ListAlertRulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"`
3030

3131
// The current state of the resource to filter by.
32-
LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"`
32+
LifecycleState ListAlertRulesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"`
3333

3434
// A user-friendly name. Does not have to be unique, and it's changeable.
3535
// Example: `My new resource`
@@ -108,3 +108,49 @@ func GetListAlertRulesSortOrderEnumValues() []ListAlertRulesSortOrderEnum {
108108
}
109109
return values
110110
}
111+
112+
// ListAlertRulesSortByEnum Enum with underlying type: string
113+
type ListAlertRulesSortByEnum string
114+
115+
// Set of constants representing the allowable values for ListAlertRulesSortByEnum
116+
const (
117+
ListAlertRulesSortByTimecreated ListAlertRulesSortByEnum = "timeCreated"
118+
ListAlertRulesSortByDisplayname ListAlertRulesSortByEnum = "displayName"
119+
)
120+
121+
var mappingListAlertRulesSortBy = map[string]ListAlertRulesSortByEnum{
122+
"timeCreated": ListAlertRulesSortByTimecreated,
123+
"displayName": ListAlertRulesSortByDisplayname,
124+
}
125+
126+
// GetListAlertRulesSortByEnumValues Enumerates the set of values for ListAlertRulesSortByEnum
127+
func GetListAlertRulesSortByEnumValues() []ListAlertRulesSortByEnum {
128+
values := make([]ListAlertRulesSortByEnum, 0)
129+
for _, v := range mappingListAlertRulesSortBy {
130+
values = append(values, v)
131+
}
132+
return values
133+
}
134+
135+
// ListAlertRulesLifecycleStateEnum Enum with underlying type: string
136+
type ListAlertRulesLifecycleStateEnum string
137+
138+
// Set of constants representing the allowable values for ListAlertRulesLifecycleStateEnum
139+
const (
140+
ListAlertRulesLifecycleStateActive ListAlertRulesLifecycleStateEnum = "ACTIVE"
141+
ListAlertRulesLifecycleStateInactive ListAlertRulesLifecycleStateEnum = "INACTIVE"
142+
)
143+
144+
var mappingListAlertRulesLifecycleState = map[string]ListAlertRulesLifecycleStateEnum{
145+
"ACTIVE": ListAlertRulesLifecycleStateActive,
146+
"INACTIVE": ListAlertRulesLifecycleStateInactive,
147+
}
148+
149+
// GetListAlertRulesLifecycleStateEnumValues Enumerates the set of values for ListAlertRulesLifecycleStateEnum
150+
func GetListAlertRulesLifecycleStateEnumValues() []ListAlertRulesLifecycleStateEnum {
151+
values := make([]ListAlertRulesLifecycleStateEnum, 0)
152+
for _, v := range mappingListAlertRulesLifecycleState {
153+
values = append(values, v)
154+
}
155+
return values
156+
}

0 commit comments

Comments
 (0)