Skip to content

Commit 0306ff0

Browse files
authored
GO SDK 4.2.0 Release
GO SDK 4.2.0 Release
2 parents 5295b14 + d1443bf commit 0306ff0

File tree

739 files changed

+5568
-1668
lines changed

Some content is hidden

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

739 files changed

+5568
-1668
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ 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+
## 4.2.0 - 2019-03-12
8+
### Added
9+
- Support for the Budgets service
10+
- Support for managing multifactor authentication in the Identity service
11+
- Support for managing default tags in the Identity service
12+
- Support for account recovery in the Identity service
13+
- Support for authentication policies in the Identity service
14+
- Support for specifying the workload type when creating autonomous databases in the Database service
15+
- Support for I/O resource management for Exadata database systems in the Database service
16+
- Support for customer-specified timezones on database systems in the Database service
17+
718
## 4.1.0 - 2019-02-28
819
### Added
920
- Support for the Monitoring service

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
DOC_SERVER_URL=https:\/\/docs.us-phoenix-1.oraclecloud.com
1+
DOC_SERVER_URL=https:\/\/docs.cloud.oracle.com
22

3-
GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine resourcesearch keymanagement announcementsservice healthchecks waas autoscaling streaming ons monitoring resourcemanager ##SPECNAME##
3+
GEN_TARGETS = identity core objectstorage loadbalancer database audit dns filestorage email containerengine resourcesearch keymanagement announcementsservice healthchecks waas autoscaling streaming ons monitoring resourcemanager budget ##SPECNAME##
44
NON_GEN_TARGETS = common common/auth
55
TARGETS = $(NON_GEN_TARGETS) $(GEN_TARGETS)
66

@@ -55,6 +55,7 @@ clean-generate:
5555
pre-doc:
5656
@echo "Rendering doc server to ${DOC_SERVER_URL}"
5757
find . -name \*.go |xargs sed -i '' 's/{{DOC_SERVER_URL}}/${DOC_SERVER_URL}/g'
58+
find . -name \*.go |xargs sed -i '' 's/https:\/\/docs.us-phoenix-1.oraclecloud.com/${DOC_SERVER_URL}/g'
5859

5960
gen-version:
6061
go generate -x

audit/update_configuration_request_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type UpdateConfigurationResponse struct {
5050
// particular request, please provide the request ID.
5151
OpcRequestId *string `presentIn:"header" name:"opc-request-id"`
5252

53-
// The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the work request.
53+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request.
5454
OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"`
5555
}
5656

autoscaling/auto_scaling_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type AutoScalingConfiguration struct {
3232
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
3333

3434
// Defined tags for this resource. Each key is predefined and scoped to a
35-
// namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
35+
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
3636
// Example: `{"Operations": {"CostCenter": "42"}}`
3737
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
3838

@@ -41,7 +41,7 @@ type AutoScalingConfiguration struct {
4141
DisplayName *string `mandatory:"false" json:"displayName"`
4242

4343
// Free-form tags for this resource. Each tag is a simple key-value pair with no
44-
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
44+
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
4545
// Example: `{"Department": "Finance"}`
4646
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
4747

autoscaling/create_auto_scaling_configuration_details.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type CreateAutoScalingConfigurationDetails struct {
2424
Resource Resource `mandatory:"true" json:"resource"`
2525

2626
// Defined tags for this resource. Each key is predefined and scoped to a
27-
// namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
27+
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
2828
// Example: `{"Operations": {"CostCenter": "42"}}`
2929
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
3030

@@ -33,7 +33,7 @@ type CreateAutoScalingConfigurationDetails struct {
3333
DisplayName *string `mandatory:"false" json:"displayName"`
3434

3535
// Free-form tags for this resource. Each tag is a simple key-value pair with no
36-
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
36+
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
3737
// Example: `{"Department": "Finance"}`
3838
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
3939

autoscaling/list_auto_scaling_configurations_request_response.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// ListAutoScalingConfigurationsRequest wrapper for the ListAutoScalingConfigurations operation
1212
type ListAutoScalingConfigurationsRequest struct {
1313

14-
// The OCID (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the compartment containing the
14+
// The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the
1515
// resources monitored by the metric that you are searching for. Use tenancyId to search in
1616
// the root compartment.
1717
CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"`
@@ -22,11 +22,11 @@ type ListAutoScalingConfigurationsRequest struct {
2222
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
2323

2424
// The maximum number of items to return in a paginated "List" call. For information about pagination, see
25-
// List Pagination (https://docs.us-phoenix-1.oraclecloud.comAPI/Concepts/usingapi.htm#List_Pagination).
25+
// List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
2626
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
2727

2828
// The value of the `opc-next-page` response header from the previous "List" call. For information about
29-
// pagination, see List Pagination (https://docs.us-phoenix-1.oraclecloud.comAPI/Concepts/usingapi.htm#List_Pagination).
29+
// pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
3030
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
3131

3232
// The field to sort by. You can provide one sort order (`sortOrder`). Default order for

autoscaling/list_auto_scaling_policies_request_response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ type ListAutoScalingPoliciesRequest struct {
2020
OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"`
2121

2222
// The maximum number of items to return in a paginated "List" call. For information about pagination, see
23-
// List Pagination (https://docs.us-phoenix-1.oraclecloud.comAPI/Concepts/usingapi.htm#List_Pagination).
23+
// List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
2424
Limit *int `mandatory:"false" contributesTo:"query" name:"limit"`
2525

2626
// The value of the `opc-next-page` response header from the previous "List" call. For information about
27-
// pagination, see List Pagination (https://docs.us-phoenix-1.oraclecloud.comAPI/Concepts/usingapi.htm#List_Pagination).
27+
// pagination, see List Pagination (https://docs.cloud.oracle.comAPI/Concepts/usingapi.htm#List_Pagination).
2828
Page *string `mandatory:"false" contributesTo:"query" name:"page"`
2929

3030
// The field to sort by. You can provide one sort order (`sortOrder`). Default order for

autoscaling/update_auto_scaling_configuration_details.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ import (
1616
type UpdateAutoScalingConfigurationDetails struct {
1717

1818
// Defined tags for this resource. Each key is predefined and scoped to a
19-
// namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
19+
// namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
2020
// Example: `{"Operations": {"CostCenter": "42"}}`
2121
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
2222

2323
// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
2424
DisplayName *string `mandatory:"false" json:"displayName"`
2525

2626
// Free-form tags for this resource. Each tag is a simple key-value pair with no
27-
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/resourcetags.htm).
27+
// predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
2828
// Example: `{"Department": "Finance"}`
2929
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
3030

budget/alert_rule.go

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2+
// Code generated. DO NOT EDIT.
3+
4+
// Budgets API
5+
//
6+
// Use the Budgets API to manage budgets and budget alerts.
7+
//
8+
9+
package budget
10+
11+
import (
12+
"github.com/oracle/oci-go-sdk/common"
13+
)
14+
15+
// AlertRule The alert rule.
16+
type AlertRule struct {
17+
18+
// The OCID of the alert rule
19+
Id *string `mandatory:"true" json:"id"`
20+
21+
// The OCID of the budget
22+
BudgetId *string `mandatory:"true" json:"budgetId"`
23+
24+
// The name of the alert rule.
25+
DisplayName *string `mandatory:"true" json:"displayName"`
26+
27+
// The type of alert. Valid values are ACTUAL (the alert will trigger based on actual usage) or
28+
// FORECAST (the alert will trigger based on predicted usage).
29+
Type AlertRuleTypeEnum `mandatory:"true" json:"type"`
30+
31+
// The threshold for triggering the alert. If thresholdType is PERCENTAGE, the maximum value is 10000.
32+
Threshold *float32 `mandatory:"true" json:"threshold"`
33+
34+
// The type of threshold.
35+
ThresholdType AlertRuleThresholdTypeEnum `mandatory:"true" json:"thresholdType"`
36+
37+
// The current state of the alert rule.
38+
LifecycleState AlertRuleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
39+
40+
// Delimited list of email addresses to receive the alert when it triggers.
41+
// Delimiter character can be comma, space, TAB, or semicolon.
42+
Recipients *string `mandatory:"true" json:"recipients"`
43+
44+
// Time budget was created
45+
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
46+
47+
// Time budget was updated
48+
TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"`
49+
50+
// Custom message sent when alert is triggered
51+
Message *string `mandatory:"false" json:"message"`
52+
53+
// The description of the alert rule.
54+
Description *string `mandatory:"false" json:"description"`
55+
56+
// Version of the alert rule. Starts from 1 and increments by 1.
57+
Version *int `mandatory:"false" json:"version"`
58+
59+
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
60+
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
61+
// Example: `{"Department": "Finance"}`
62+
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
63+
64+
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
65+
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
66+
// Example: `{"Operations": {"CostCenter": "42"}}`
67+
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
68+
}
69+
70+
func (m AlertRule) String() string {
71+
return common.PointerString(m)
72+
}
73+
74+
// AlertRuleTypeEnum Enum with underlying type: string
75+
type AlertRuleTypeEnum string
76+
77+
// Set of constants representing the allowable values for AlertRuleTypeEnum
78+
const (
79+
AlertRuleTypeActual AlertRuleTypeEnum = "ACTUAL"
80+
AlertRuleTypeForecast AlertRuleTypeEnum = "FORECAST"
81+
)
82+
83+
var mappingAlertRuleType = map[string]AlertRuleTypeEnum{
84+
"ACTUAL": AlertRuleTypeActual,
85+
"FORECAST": AlertRuleTypeForecast,
86+
}
87+
88+
// GetAlertRuleTypeEnumValues Enumerates the set of values for AlertRuleTypeEnum
89+
func GetAlertRuleTypeEnumValues() []AlertRuleTypeEnum {
90+
values := make([]AlertRuleTypeEnum, 0)
91+
for _, v := range mappingAlertRuleType {
92+
values = append(values, v)
93+
}
94+
return values
95+
}
96+
97+
// AlertRuleThresholdTypeEnum Enum with underlying type: string
98+
type AlertRuleThresholdTypeEnum string
99+
100+
// Set of constants representing the allowable values for AlertRuleThresholdTypeEnum
101+
const (
102+
AlertRuleThresholdTypePercentage AlertRuleThresholdTypeEnum = "PERCENTAGE"
103+
AlertRuleThresholdTypeAbsolute AlertRuleThresholdTypeEnum = "ABSOLUTE"
104+
)
105+
106+
var mappingAlertRuleThresholdType = map[string]AlertRuleThresholdTypeEnum{
107+
"PERCENTAGE": AlertRuleThresholdTypePercentage,
108+
"ABSOLUTE": AlertRuleThresholdTypeAbsolute,
109+
}
110+
111+
// GetAlertRuleThresholdTypeEnumValues Enumerates the set of values for AlertRuleThresholdTypeEnum
112+
func GetAlertRuleThresholdTypeEnumValues() []AlertRuleThresholdTypeEnum {
113+
values := make([]AlertRuleThresholdTypeEnum, 0)
114+
for _, v := range mappingAlertRuleThresholdType {
115+
values = append(values, v)
116+
}
117+
return values
118+
}
119+
120+
// AlertRuleLifecycleStateEnum Enum with underlying type: string
121+
type AlertRuleLifecycleStateEnum string
122+
123+
// Set of constants representing the allowable values for AlertRuleLifecycleStateEnum
124+
const (
125+
AlertRuleLifecycleStateActive AlertRuleLifecycleStateEnum = "ACTIVE"
126+
AlertRuleLifecycleStateInactive AlertRuleLifecycleStateEnum = "INACTIVE"
127+
)
128+
129+
var mappingAlertRuleLifecycleState = map[string]AlertRuleLifecycleStateEnum{
130+
"ACTIVE": AlertRuleLifecycleStateActive,
131+
"INACTIVE": AlertRuleLifecycleStateInactive,
132+
}
133+
134+
// GetAlertRuleLifecycleStateEnumValues Enumerates the set of values for AlertRuleLifecycleStateEnum
135+
func GetAlertRuleLifecycleStateEnumValues() []AlertRuleLifecycleStateEnum {
136+
values := make([]AlertRuleLifecycleStateEnum, 0)
137+
for _, v := range mappingAlertRuleLifecycleState {
138+
values = append(values, v)
139+
}
140+
return values
141+
}

0 commit comments

Comments
 (0)