apis

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteBackSourceConfigurationRequest

type DeleteBackSourceConfigurationRequest struct {
	core.JDCloudRequest

	/* 区域ID  */
	RegionId string `json:"regionId"`

	/* Bucket名称  */
	BucketName string `json:"bucketName"`
}

func NewDeleteBackSourceConfigurationRequest

func NewDeleteBackSourceConfigurationRequest(
	regionId string,
	bucketName string,
) *DeleteBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteBackSourceConfigurationRequestWithAllParams

func NewDeleteBackSourceConfigurationRequestWithAllParams(
	regionId string,
	bucketName string,
) *DeleteBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required)

func NewDeleteBackSourceConfigurationRequestWithoutParam

func NewDeleteBackSourceConfigurationRequestWithoutParam() *DeleteBackSourceConfigurationRequest

This constructor has better compatible ability when API parameters changed

func (DeleteBackSourceConfigurationRequest) GetRegionId

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteBackSourceConfigurationRequest) SetBucketName

func (r *DeleteBackSourceConfigurationRequest) SetBucketName(bucketName string)

param bucketName: Bucket名称(Required)

func (*DeleteBackSourceConfigurationRequest) SetRegionId

func (r *DeleteBackSourceConfigurationRequest) SetRegionId(regionId string)

param regionId: 区域ID(Required)

type DeleteBackSourceConfigurationResponse

type DeleteBackSourceConfigurationResponse struct {
	RequestID string                              `json:"requestId"`
	Error     core.ErrorResponse                  `json:"error"`
	Result    DeleteBackSourceConfigurationResult `json:"result"`
}

type DeleteBackSourceConfigurationResult

type DeleteBackSourceConfigurationResult struct {
}

type GetBackSourceConfigurationRequest

type GetBackSourceConfigurationRequest struct {
	core.JDCloudRequest

	/* 区域ID  */
	RegionId string `json:"regionId"`

	/* Bucket名称  */
	BucketName string `json:"bucketName"`
}

func NewGetBackSourceConfigurationRequest

func NewGetBackSourceConfigurationRequest(
	regionId string,
	bucketName string,
) *GetBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetBackSourceConfigurationRequestWithAllParams

func NewGetBackSourceConfigurationRequestWithAllParams(
	regionId string,
	bucketName string,
) *GetBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required)

func NewGetBackSourceConfigurationRequestWithoutParam

func NewGetBackSourceConfigurationRequestWithoutParam() *GetBackSourceConfigurationRequest

This constructor has better compatible ability when API parameters changed

func (GetBackSourceConfigurationRequest) GetRegionId

func (r GetBackSourceConfigurationRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetBackSourceConfigurationRequest) SetBucketName

func (r *GetBackSourceConfigurationRequest) SetBucketName(bucketName string)

param bucketName: Bucket名称(Required)

func (*GetBackSourceConfigurationRequest) SetRegionId

func (r *GetBackSourceConfigurationRequest) SetRegionId(regionId string)

param regionId: 区域ID(Required)

type GetBackSourceConfigurationResponse

type GetBackSourceConfigurationResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    GetBackSourceConfigurationResult `json:"result"`
}

type GetBackSourceConfigurationResult

type GetBackSourceConfigurationResult struct {
	BackSourceRules []ossopenapi.BackSourceRule `json:"backSourceRules"`
}

type GetSingleBucketCapacityRequest added in v1.11.0

type GetSingleBucketCapacityRequest struct {
	core.JDCloudRequest

	/* 区域ID  */
	RegionId string `json:"regionId"`

	/* 查询用量的指定bucket  */
	BucketName string `json:"bucketName"`

	/* <p>查询用量数据类型:</p><br><code>1000040</code>:标准存储<br><code>1000041</code>:低冗余存储<br><code>1000042</code>:归档存储<br><code>1000043</code>归档overHead存储:<br><code>1000044</code>低频存储:<br><code>1000045</code>低频overHead存储:<br><code>1</code>:内网GET流量<br><code>2</code>:内网HEAD流量<br><code>3</code>:内网PUT流量<br><code>4</code>:内网POST流量<br><code>5</code>:内网DELETE流量<br><code>6</code>:内网OPTIONS流量<br><code>7</code>:内网TRACE流量<br><code>11</code>:外网GET流量<br><code>12</code>:外网HEAD流量<br><code>13</code>:外网PUT流量<br><code>14</code>:外网POST流量<br><code>15</code>:外网DELETE流量<br><code>16</code>:外网OPTIONS流量<br><code>17</code>:外网TRACE流量<br><code>21</code>:CDN GET流量<br><code>22</code>:CDN HEAD流量<br><code>23</code>:CDN PUT流量<br><code>24</code>:CDN POST流量<br><code>25</code>:CDN DELETE流量<br><code>26</code>:CDN OPTIONS流量<br><code>27</code>:CDN TRACE流量<br><code>31</code>:内网GET数<br><code>32</code>:内网HEAD数<br><code>33</code>:内网PUT数<br><code>34</code>:内网POST数<br><code>35</code>:内网DELETE数<br><code>36</code>:内网OPTIONS数<br><code>37</code>:内网TRACE数<br><code>51</code>:外网GET数<br><code>52</code>:外网HEAD数<br><code>53</code>:外网PUT数<br><code>54</code>:外网POST数<br><code>55</code>:外网DELETE数<br><code>56</code>:外网OPTIONS数<br><code>57</code>:外网TRACE数<br><code>61</code>:CDN GET数<br><code>62</code>:CDN HEAD数<br><code>63</code>:CDN PUT数<br><code>64</code>:CDN POST数<br><code>65</code>:CDN DELETE数<br><code>66</code>:CDN OPTIONS数<br><code>67</code>:CDN TRACE数<br><code>71</code>:归档提前删除<br><code>72</code>:低频提前删除<br><code>81</code>:归档取回Bulk<br><code>82</code>:归档取回Std<br><code>83</code>:归档取回Exp<br><code>84</code>:低频数据取回
	 */
	CapacityTypes []int `json:"capacityTypes"`

	/* 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' (Optional) */
	BeginTime *string `json:"beginTime"`

	/* 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' (Optional) */
	EndTime *string `json:"endTime"`

	/* 查询数据的聚合方式:<br><code>0</code>:all, 最大查询区间365天 <br><code>1</code>:hour,最大查询区间31天。默认1<br><code>2</code>:day, 最大查询区间365天。 (Optional) */
	PeriodType *int `json:"periodType"`

	/* 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。)  */
	Method int `json:"method"`
}

func NewGetSingleBucketCapacityRequest added in v1.11.0

func NewGetSingleBucketCapacityRequest(
	regionId string,
	bucketName string,
	capacityTypes []int,
	method int,
) *GetSingleBucketCapacityRequest

* param regionId: 区域ID (Required) * param bucketName: 查询用量的指定bucket (Required) * param capacityTypes: <p>查询用量数据类型:</p><br><code>1000040</code>:标准存储<br><code>1000041</code>:低冗余存储<br><code>1000042</code>:归档存储<br><code>1000043</code>归档overHead存储:<br><code>1000044</code>低频存储:<br><code>1000045</code>低频overHead存储:<br><code>1</code>:内网GET流量<br><code>2</code>:内网HEAD流量<br><code>3</code>:内网PUT流量<br><code>4</code>:内网POST流量<br><code>5</code>:内网DELETE流量<br><code>6</code>:内网OPTIONS流量<br><code>7</code>:内网TRACE流量<br><code>11</code>:外网GET流量<br><code>12</code>:外网HEAD流量<br><code>13</code>:外网PUT流量<br><code>14</code>:外网POST流量<br><code>15</code>:外网DELETE流量<br><code>16</code>:外网OPTIONS流量<br><code>17</code>:外网TRACE流量<br><code>21</code>:CDN GET流量<br><code>22</code>:CDN HEAD流量<br><code>23</code>:CDN PUT流量<br><code>24</code>:CDN POST流量<br><code>25</code>:CDN DELETE流量<br><code>26</code>:CDN OPTIONS流量<br><code>27</code>:CDN TRACE流量<br><code>31</code>:内网GET数<br><code>32</code>:内网HEAD数<br><code>33</code>:内网PUT数<br><code>34</code>:内网POST数<br><code>35</code>:内网DELETE数<br><code>36</code>:内网OPTIONS数<br><code>37</code>:内网TRACE数<br><code>51</code>:外网GET数<br><code>52</code>:外网HEAD数<br><code>53</code>:外网PUT数<br><code>54</code>:外网POST数<br><code>55</code>:外网DELETE数<br><code>56</code>:外网OPTIONS数<br><code>57</code>:外网TRACE数<br><code>61</code>:CDN GET数<br><code>62</code>:CDN HEAD数<br><code>63</code>:CDN PUT数<br><code>64</code>:CDN POST数<br><code>65</code>:CDN DELETE数<br><code>66</code>:CDN OPTIONS数<br><code>67</code>:CDN TRACE数<br><code>71</code>:归档提前删除<br><code>72</code>:低频提前删除<br><code>81</code>:归档取回Bulk<br><code>82</code>:归档取回Std<br><code>83</code>:归档取回Exp<br><code>84</code>:低频数据取回 (Required) * param method: 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。) (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetSingleBucketCapacityRequestWithAllParams added in v1.11.0

func NewGetSingleBucketCapacityRequestWithAllParams(
	regionId string,
	bucketName string,
	capacityTypes []int,
	beginTime *string,
	endTime *string,
	periodType *int,
	method int,
) *GetSingleBucketCapacityRequest

* param regionId: 区域ID (Required) * param bucketName: 查询用量的指定bucket (Required) * param capacityTypes: <p>查询用量数据类型:</p><br><code>1000040</code>:标准存储<br><code>1000041</code>:低冗余存储<br><code>1000042</code>:归档存储<br><code>1000043</code>归档overHead存储:<br><code>1000044</code>低频存储:<br><code>1000045</code>低频overHead存储:<br><code>1</code>:内网GET流量<br><code>2</code>:内网HEAD流量<br><code>3</code>:内网PUT流量<br><code>4</code>:内网POST流量<br><code>5</code>:内网DELETE流量<br><code>6</code>:内网OPTIONS流量<br><code>7</code>:内网TRACE流量<br><code>11</code>:外网GET流量<br><code>12</code>:外网HEAD流量<br><code>13</code>:外网PUT流量<br><code>14</code>:外网POST流量<br><code>15</code>:外网DELETE流量<br><code>16</code>:外网OPTIONS流量<br><code>17</code>:外网TRACE流量<br><code>21</code>:CDN GET流量<br><code>22</code>:CDN HEAD流量<br><code>23</code>:CDN PUT流量<br><code>24</code>:CDN POST流量<br><code>25</code>:CDN DELETE流量<br><code>26</code>:CDN OPTIONS流量<br><code>27</code>:CDN TRACE流量<br><code>31</code>:内网GET数<br><code>32</code>:内网HEAD数<br><code>33</code>:内网PUT数<br><code>34</code>:内网POST数<br><code>35</code>:内网DELETE数<br><code>36</code>:内网OPTIONS数<br><code>37</code>:内网TRACE数<br><code>51</code>:外网GET数<br><code>52</code>:外网HEAD数<br><code>53</code>:外网PUT数<br><code>54</code>:外网POST数<br><code>55</code>:外网DELETE数<br><code>56</code>:外网OPTIONS数<br><code>57</code>:外网TRACE数<br><code>61</code>:CDN GET数<br><code>62</code>:CDN HEAD数<br><code>63</code>:CDN PUT数<br><code>64</code>:CDN POST数<br><code>65</code>:CDN DELETE数<br><code>66</code>:CDN OPTIONS数<br><code>67</code>:CDN TRACE数<br><code>71</code>:归档提前删除<br><code>72</code>:低频提前删除<br><code>81</code>:归档取回Bulk<br><code>82</code>:归档取回Std<br><code>83</code>:归档取回Exp<br><code>84</code>:低频数据取回 (Required) * param beginTime: 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' (Optional) * param endTime: 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z' (Optional) * param periodType: 查询数据的聚合方式:<br><code>0</code>:all, 最大查询区间365天 <br><code>1</code>:hour,最大查询区间31天。默认1<br><code>2</code>:day, 最大查询区间365天。 (Optional) * param method: 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。) (Required)

func NewGetSingleBucketCapacityRequestWithoutParam added in v1.11.0

func NewGetSingleBucketCapacityRequestWithoutParam() *GetSingleBucketCapacityRequest

This constructor has better compatible ability when API parameters changed

func (GetSingleBucketCapacityRequest) GetRegionId added in v1.11.0

func (r GetSingleBucketCapacityRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetSingleBucketCapacityRequest) SetBeginTime added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetBeginTime(beginTime string)

param beginTime: 开始时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'(Optional)

func (*GetSingleBucketCapacityRequest) SetBucketName added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetBucketName(bucketName string)

param bucketName: 查询用量的指定bucket(Required)

func (*GetSingleBucketCapacityRequest) SetCapacityTypes added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetCapacityTypes(capacityTypes []int)
param capacityTypes: <p>查询用量数据类型:</p><br><code>1000040</code>:标准存储<br><code>1000041</code>:低冗余存储<br><code>1000042</code>:归档存储<br><code>1000043</code>归档overHead存储:<br><code>1000044</code>低频存储:<br><code>1000045</code>低频overHead存储:<br><code>1</code>:内网GET流量<br><code>2</code>:内网HEAD流量<br><code>3</code>:内网PUT流量<br><code>4</code>:内网POST流量<br><code>5</code>:内网DELETE流量<br><code>6</code>:内网OPTIONS流量<br><code>7</code>:内网TRACE流量<br><code>11</code>:外网GET流量<br><code>12</code>:外网HEAD流量<br><code>13</code>:外网PUT流量<br><code>14</code>:外网POST流量<br><code>15</code>:外网DELETE流量<br><code>16</code>:外网OPTIONS流量<br><code>17</code>:外网TRACE流量<br><code>21</code>:CDN GET流量<br><code>22</code>:CDN HEAD流量<br><code>23</code>:CDN PUT流量<br><code>24</code>:CDN POST流量<br><code>25</code>:CDN DELETE流量<br><code>26</code>:CDN OPTIONS流量<br><code>27</code>:CDN TRACE流量<br><code>31</code>:内网GET数<br><code>32</code>:内网HEAD数<br><code>33</code>:内网PUT数<br><code>34</code>:内网POST数<br><code>35</code>:内网DELETE数<br><code>36</code>:内网OPTIONS数<br><code>37</code>:内网TRACE数<br><code>51</code>:外网GET数<br><code>52</code>:外网HEAD数<br><code>53</code>:外网PUT数<br><code>54</code>:外网POST数<br><code>55</code>:外网DELETE数<br><code>56</code>:外网OPTIONS数<br><code>57</code>:外网TRACE数<br><code>61</code>:CDN GET数<br><code>62</code>:CDN HEAD数<br><code>63</code>:CDN PUT数<br><code>64</code>:CDN POST数<br><code>65</code>:CDN DELETE数<br><code>66</code>:CDN OPTIONS数<br><code>67</code>:CDN TRACE数<br><code>71</code>:归档提前删除<br><code>72</code>:低频提前删除<br><code>81</code>:归档取回Bulk<br><code>82</code>:归档取回Std<br><code>83</code>:归档取回Exp<br><code>84</code>:低频数据取回

(Required)

func (*GetSingleBucketCapacityRequest) SetEndTime added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetEndTime(endTime string)

param endTime: 结束时间,使用UTC时间,格式为:YYYY-MM-DDTHH:mm:ss'Z'(Optional)

func (*GetSingleBucketCapacityRequest) SetMethod added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetMethod(method int)

param method: 返回数据的方式: <code>1</code>:recent(区间值), <code>2</code>:current(当前值。method = 2 时如果查询当前值时传入beginTime,则按照beginTime时间来进行查询;如果不传beginTime,则按照后端系统时间查询。)(Required)

func (*GetSingleBucketCapacityRequest) SetPeriodType added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetPeriodType(periodType int)

param periodType: 查询数据的聚合方式:<br><code>0</code>:all, 最大查询区间365天 <br><code>1</code>:hour,最大查询区间31天。默认1<br><code>2</code>:day, 最大查询区间365天。(Optional)

func (*GetSingleBucketCapacityRequest) SetRegionId added in v1.11.0

func (r *GetSingleBucketCapacityRequest) SetRegionId(regionId string)

param regionId: 区域ID(Required)

type GetSingleBucketCapacityResponse added in v1.11.0

type GetSingleBucketCapacityResponse struct {
	RequestID string                        `json:"requestId"`
	Error     core.ErrorResponse            `json:"error"`
	Result    GetSingleBucketCapacityResult `json:"result"`
}

type GetSingleBucketCapacityResult added in v1.11.0

type GetSingleBucketCapacityResult struct {
	ResultList []ossopenapi.BucketCapacityStatistic `json:"resultList"`
}

type PutBackSourceConfigurationRequest

type PutBackSourceConfigurationRequest struct {
	core.JDCloudRequest

	/* 区域ID  */
	RegionId string `json:"regionId"`

	/* Bucket名称  */
	BucketName string `json:"bucketName"`

	/* 回源配置规则 (Optional) */
	BackSourceRules []ossopenapi.BackSourceRule `json:"backSourceRules"`
}

func NewPutBackSourceConfigurationRequest

func NewPutBackSourceConfigurationRequest(
	regionId string,
	bucketName string,
) *PutBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewPutBackSourceConfigurationRequestWithAllParams

func NewPutBackSourceConfigurationRequestWithAllParams(
	regionId string,
	bucketName string,
	backSourceRules []ossopenapi.BackSourceRule,
) *PutBackSourceConfigurationRequest

* param regionId: 区域ID (Required) * param bucketName: Bucket名称 (Required) * param backSourceRules: 回源配置规则 (Optional)

func NewPutBackSourceConfigurationRequestWithoutParam

func NewPutBackSourceConfigurationRequestWithoutParam() *PutBackSourceConfigurationRequest

This constructor has better compatible ability when API parameters changed

func (PutBackSourceConfigurationRequest) GetRegionId

func (r PutBackSourceConfigurationRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*PutBackSourceConfigurationRequest) SetBackSourceRules

func (r *PutBackSourceConfigurationRequest) SetBackSourceRules(backSourceRules []ossopenapi.BackSourceRule)

param backSourceRules: 回源配置规则(Optional)

func (*PutBackSourceConfigurationRequest) SetBucketName

func (r *PutBackSourceConfigurationRequest) SetBucketName(bucketName string)

param bucketName: Bucket名称(Required)

func (*PutBackSourceConfigurationRequest) SetRegionId

func (r *PutBackSourceConfigurationRequest) SetRegionId(regionId string)

param regionId: 区域ID(Required)

type PutBackSourceConfigurationResponse

type PutBackSourceConfigurationResponse struct {
	RequestID string                           `json:"requestId"`
	Error     core.ErrorResponse               `json:"error"`
	Result    PutBackSourceConfigurationResult `json:"result"`
}

type PutBackSourceConfigurationResult

type PutBackSourceConfigurationResult struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL