Skip to content

Commit

Permalink
feat: get project supp location (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao committed Jun 5, 2024
1 parent 52078e0 commit c6f1589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions log_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type LogProject struct {
CreateTime string `json:"createTime"` // unix time seconds, eg 1524539357
LastModifyTime string `json:"lastModifyTime"` // unix time seconds, eg 1524539357
DataRedundancyType string `json:"dataRedundancyType,omitempty"` // data redundancy type, valid values: ['LRS', 'ZRS']
Location string `json:"location,omitempty"` // location, eg. cn-beijing-b

Endpoint string // IP or hostname of SLS endpoint
AccessKeyID string // Deprecated: use CredentialsProvider instead
Expand Down
2 changes: 2 additions & 0 deletions project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ func (s *ProjectTestSuite) TestCreateProjectV2() {
s.NoError(err)
proj, err := s.client.GetProject(v2)
s.NoError(err)
s.NotEmpty(proj.Location)
fmt.Println(proj.Name)
fmt.Println(proj.Location)
s.Equal(proj.DataRedundancyType, PROJECT_DATA_REDUNDANCY_TYPE_ZRS)
err = s.client.DeleteProject(v2)
s.NoError(err)
Expand Down

0 comments on commit c6f1589

Please sign in to comment.