@scaleway/sdk 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/billing/v2beta1/api.gen.js +7 -1
- package/dist/api/billing/v2beta1/marshalling.gen.js +48 -2
- package/dist/api/cockpit/v1beta1/api.gen.js +34 -29
- package/dist/api/iam/v1alpha1/api.gen.js +2 -2
- package/dist/api/instance/v1/marshalling.gen.js +4 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -2
- package/dist/api/jobs/v1alpha1/marshalling.gen.js +8 -1
- package/dist/api/k8s/v1/api.gen.js +1 -1
- package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +2 -2
- package/dist/api/tem/v1alpha1/marshalling.gen.js +11 -0
- package/dist/index.cjs +125 -47
- package/dist/index.d.ts +177 -77
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v2.
|
|
500
|
+
const version = 'v2.12.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -3660,7 +3660,7 @@ const unmarshalGetConsumptionResponse = data => {
|
|
|
3660
3660
|
updatedAt: unmarshalDate(data.updated_at)
|
|
3661
3661
|
};
|
|
3662
3662
|
};
|
|
3663
|
-
const unmarshalDiscountCoupon = data => {
|
|
3663
|
+
const unmarshalDiscountCoupon$1 = data => {
|
|
3664
3664
|
if (!isJSONObject(data)) {
|
|
3665
3665
|
throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
|
|
3666
3666
|
}
|
|
@@ -3668,7 +3668,7 @@ const unmarshalDiscountCoupon = data => {
|
|
|
3668
3668
|
description: data.description
|
|
3669
3669
|
};
|
|
3670
3670
|
};
|
|
3671
|
-
const unmarshalDiscountFilter = data => {
|
|
3671
|
+
const unmarshalDiscountFilter$1 = data => {
|
|
3672
3672
|
if (!isJSONObject(data)) {
|
|
3673
3673
|
throw new TypeError(`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`);
|
|
3674
3674
|
}
|
|
@@ -3677,15 +3677,15 @@ const unmarshalDiscountFilter = data => {
|
|
|
3677
3677
|
value: data.value
|
|
3678
3678
|
};
|
|
3679
3679
|
};
|
|
3680
|
-
const unmarshalDiscount = data => {
|
|
3680
|
+
const unmarshalDiscount$1 = data => {
|
|
3681
3681
|
if (!isJSONObject(data)) {
|
|
3682
3682
|
throw new TypeError(`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`);
|
|
3683
3683
|
}
|
|
3684
3684
|
return {
|
|
3685
|
-
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : undefined,
|
|
3685
|
+
coupon: data.coupon ? unmarshalDiscountCoupon$1(data.coupon) : undefined,
|
|
3686
3686
|
creationDate: unmarshalDate(data.creation_date),
|
|
3687
3687
|
description: data.description,
|
|
3688
|
-
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
|
|
3688
|
+
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter$1),
|
|
3689
3689
|
id: data.id,
|
|
3690
3690
|
mode: data.mode,
|
|
3691
3691
|
organizationId: data.organization_id,
|
|
@@ -3696,12 +3696,12 @@ const unmarshalDiscount = data => {
|
|
|
3696
3696
|
valueUsed: data.value_used
|
|
3697
3697
|
};
|
|
3698
3698
|
};
|
|
3699
|
-
const unmarshalListDiscountsResponse = data => {
|
|
3699
|
+
const unmarshalListDiscountsResponse$1 = data => {
|
|
3700
3700
|
if (!isJSONObject(data)) {
|
|
3701
3701
|
throw new TypeError(`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`);
|
|
3702
3702
|
}
|
|
3703
3703
|
return {
|
|
3704
|
-
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
|
|
3704
|
+
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount$1),
|
|
3705
3705
|
totalCount: data.total_count
|
|
3706
3706
|
};
|
|
3707
3707
|
};
|
|
@@ -3782,7 +3782,7 @@ let API$t = class API extends API$x {
|
|
|
3782
3782
|
method: 'GET',
|
|
3783
3783
|
path: `/billing/v2alpha1/discounts`,
|
|
3784
3784
|
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
3785
|
-
}, unmarshalListDiscountsResponse);
|
|
3785
|
+
}, unmarshalListDiscountsResponse$1);
|
|
3786
3786
|
|
|
3787
3787
|
/**
|
|
3788
3788
|
* List all user's discounts. List all discounts for an organization and
|
|
@@ -3811,7 +3811,6 @@ const unmarshalInvoice = data => {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
return {
|
|
3813
3813
|
billingPeriod: unmarshalDate(data.billing_period),
|
|
3814
|
-
customerName: data.customer_name,
|
|
3815
3814
|
dueDate: unmarshalDate(data.due_date),
|
|
3816
3815
|
id: data.id,
|
|
3817
3816
|
issuedDate: unmarshalDate(data.issued_date),
|
|
@@ -3835,11 +3834,13 @@ const unmarshalListConsumptionsResponseConsumption = data => {
|
|
|
3835
3834
|
throw new TypeError(`Unmarshalling the type 'ListConsumptionsResponseConsumption' failed as data isn't a dictionary.`);
|
|
3836
3835
|
}
|
|
3837
3836
|
return {
|
|
3837
|
+
billedQuantity: data.billed_quantity,
|
|
3838
3838
|
categoryName: data.category_name,
|
|
3839
3839
|
productName: data.product_name,
|
|
3840
3840
|
projectId: data.project_id,
|
|
3841
3841
|
resourceName: data.resource_name,
|
|
3842
3842
|
sku: data.sku,
|
|
3843
|
+
unit: data.unit,
|
|
3843
3844
|
value: data.value ? unmarshalMoney(data.value) : undefined
|
|
3844
3845
|
};
|
|
3845
3846
|
};
|
|
@@ -3854,6 +3855,51 @@ const unmarshalListConsumptionsResponse = data => {
|
|
|
3854
3855
|
updatedAt: unmarshalDate(data.updated_at)
|
|
3855
3856
|
};
|
|
3856
3857
|
};
|
|
3858
|
+
const unmarshalDiscountCoupon = data => {
|
|
3859
|
+
if (!isJSONObject(data)) {
|
|
3860
|
+
throw new TypeError(`Unmarshalling the type 'DiscountCoupon' failed as data isn't a dictionary.`);
|
|
3861
|
+
}
|
|
3862
|
+
return {
|
|
3863
|
+
description: data.description
|
|
3864
|
+
};
|
|
3865
|
+
};
|
|
3866
|
+
const unmarshalDiscountFilter = data => {
|
|
3867
|
+
if (!isJSONObject(data)) {
|
|
3868
|
+
throw new TypeError(`Unmarshalling the type 'DiscountFilter' failed as data isn't a dictionary.`);
|
|
3869
|
+
}
|
|
3870
|
+
return {
|
|
3871
|
+
type: data.type,
|
|
3872
|
+
value: data.value
|
|
3873
|
+
};
|
|
3874
|
+
};
|
|
3875
|
+
const unmarshalDiscount = data => {
|
|
3876
|
+
if (!isJSONObject(data)) {
|
|
3877
|
+
throw new TypeError(`Unmarshalling the type 'Discount' failed as data isn't a dictionary.`);
|
|
3878
|
+
}
|
|
3879
|
+
return {
|
|
3880
|
+
coupon: data.coupon ? unmarshalDiscountCoupon(data.coupon) : undefined,
|
|
3881
|
+
creationDate: unmarshalDate(data.creation_date),
|
|
3882
|
+
description: data.description,
|
|
3883
|
+
filters: unmarshalArrayOfObject(data.filters, unmarshalDiscountFilter),
|
|
3884
|
+
id: data.id,
|
|
3885
|
+
mode: data.mode,
|
|
3886
|
+
organizationId: data.organization_id,
|
|
3887
|
+
startDate: unmarshalDate(data.start_date),
|
|
3888
|
+
stopDate: unmarshalDate(data.stop_date),
|
|
3889
|
+
value: data.value,
|
|
3890
|
+
valueRemaining: data.value_remaining,
|
|
3891
|
+
valueUsed: data.value_used
|
|
3892
|
+
};
|
|
3893
|
+
};
|
|
3894
|
+
const unmarshalListDiscountsResponse = data => {
|
|
3895
|
+
if (!isJSONObject(data)) {
|
|
3896
|
+
throw new TypeError(`Unmarshalling the type 'ListDiscountsResponse' failed as data isn't a dictionary.`);
|
|
3897
|
+
}
|
|
3898
|
+
return {
|
|
3899
|
+
discounts: unmarshalArrayOfObject(data.discounts, unmarshalDiscount),
|
|
3900
|
+
totalCount: data.total_count
|
|
3901
|
+
};
|
|
3902
|
+
};
|
|
3857
3903
|
const unmarshalListInvoicesResponse = data => {
|
|
3858
3904
|
if (!isJSONObject(data)) {
|
|
3859
3905
|
throw new TypeError(`Unmarshalling the type 'ListInvoicesResponse' failed as data isn't a dictionary.`);
|
|
@@ -3980,6 +4026,12 @@ let API$s = class API extends API$x {
|
|
|
3980
4026
|
urlParams: urlParams(['dl', 1], ['file_type', request.fileType]),
|
|
3981
4027
|
responseType: 'blob'
|
|
3982
4028
|
});
|
|
4029
|
+
pageOfListDiscounts = (request = {}) => this.client.fetch({
|
|
4030
|
+
method: 'GET',
|
|
4031
|
+
path: `/billing/v2beta1/discounts`,
|
|
4032
|
+
urlParams: urlParams(['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
|
|
4033
|
+
}, unmarshalListDiscountsResponse);
|
|
4034
|
+
listDiscounts = (request = {}) => enrichForPagination('discounts', this.pageOfListDiscounts, request);
|
|
3983
4035
|
};
|
|
3984
4036
|
|
|
3985
4037
|
// This file was automatically generated. DO NOT EDIT.
|
|
@@ -4720,13 +4772,13 @@ const jsonContentHeaders$p = {
|
|
|
4720
4772
|
/**
|
|
4721
4773
|
* Cockpit API.
|
|
4722
4774
|
*
|
|
4723
|
-
* Cockpit
|
|
4724
|
-
*
|
|
4725
|
-
*
|
|
4775
|
+
* The Cockpit API allows you to activate your Cockpit to store metrics and
|
|
4776
|
+
* logs. It also provides you with a dedicated Grafana for dashboarding to
|
|
4777
|
+
* visualize your metrics and logs.
|
|
4726
4778
|
*/
|
|
4727
4779
|
let API$q = class API extends API$x {
|
|
4728
4780
|
/**
|
|
4729
|
-
* Activate the Cockpit of
|
|
4781
|
+
* Activate the Cockpit of a given Project specified by the Project ID.
|
|
4730
4782
|
*
|
|
4731
4783
|
* @param request - The request {@link ActivateCockpitRequest}
|
|
4732
4784
|
* @returns A Promise of Cockpit
|
|
@@ -4739,7 +4791,7 @@ let API$q = class API extends API$x {
|
|
|
4739
4791
|
}, unmarshalCockpit);
|
|
4740
4792
|
|
|
4741
4793
|
/**
|
|
4742
|
-
* Retrieve the Cockpit of
|
|
4794
|
+
* Retrieve the Cockpit of a given Project specified by the Project ID.
|
|
4743
4795
|
*
|
|
4744
4796
|
* @param request - The request {@link GetCockpitRequest}
|
|
4745
4797
|
* @returns A Promise of Cockpit
|
|
@@ -4760,7 +4812,8 @@ let API$q = class API extends API$x {
|
|
|
4760
4812
|
waitForCockpit = (request = {}, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!COCKPIT_TRANSIENT_STATUSES.includes(res.status))), this.getCockpit, request, options);
|
|
4761
4813
|
|
|
4762
4814
|
/**
|
|
4763
|
-
*
|
|
4815
|
+
* Retrieve metrics from your Cockpit specified by the ID of the Project the
|
|
4816
|
+
* Cockpit belongs to.
|
|
4764
4817
|
*
|
|
4765
4818
|
* @param request - The request {@link GetCockpitMetricsRequest}
|
|
4766
4819
|
* @returns A Promise of CockpitMetrics
|
|
@@ -4772,7 +4825,7 @@ let API$q = class API extends API$x {
|
|
|
4772
4825
|
}, unmarshalCockpitMetrics);
|
|
4773
4826
|
|
|
4774
4827
|
/**
|
|
4775
|
-
* Deactivate the Cockpit of
|
|
4828
|
+
* Deactivate the Cockpit of a given Project specified by the Project ID.
|
|
4776
4829
|
*
|
|
4777
4830
|
* @param request - The request {@link DeactivateCockpitRequest}
|
|
4778
4831
|
* @returns A Promise of Cockpit
|
|
@@ -4785,7 +4838,8 @@ let API$q = class API extends API$x {
|
|
|
4785
4838
|
}, unmarshalCockpit);
|
|
4786
4839
|
|
|
4787
4840
|
/**
|
|
4788
|
-
* Create a
|
|
4841
|
+
* Create a data source for a given Project specified by the Project ID and
|
|
4842
|
+
* the data source type.
|
|
4789
4843
|
*
|
|
4790
4844
|
* @param request - The request {@link CreateDatasourceRequest}
|
|
4791
4845
|
* @returns A Promise of Datasource
|
|
@@ -4798,7 +4852,7 @@ let API$q = class API extends API$x {
|
|
|
4798
4852
|
}, unmarshalDatasource);
|
|
4799
4853
|
|
|
4800
4854
|
/**
|
|
4801
|
-
* Delete
|
|
4855
|
+
* Delete a given data source specified by the data source ID.
|
|
4802
4856
|
*
|
|
4803
4857
|
* @param request - The request {@link DeleteDatasourceRequest}
|
|
4804
4858
|
*/
|
|
@@ -4813,7 +4867,7 @@ let API$q = class API extends API$x {
|
|
|
4813
4867
|
}, unmarshalListDatasourcesResponse);
|
|
4814
4868
|
|
|
4815
4869
|
/**
|
|
4816
|
-
* Get a list of
|
|
4870
|
+
* Get a list of data sources for the specified Project ID.
|
|
4817
4871
|
*
|
|
4818
4872
|
* @param request - The request {@link ListDatasourcesRequest}
|
|
4819
4873
|
* @returns A Promise of ListDatasourcesResponse
|
|
@@ -4821,7 +4875,7 @@ let API$q = class API extends API$x {
|
|
|
4821
4875
|
listDatasources = (request = {}) => enrichForPagination('datasources', this.pageOfListDatasources, request);
|
|
4822
4876
|
|
|
4823
4877
|
/**
|
|
4824
|
-
* Create a token
|
|
4878
|
+
* Create a token in a given Project specified by the Project ID.
|
|
4825
4879
|
*
|
|
4826
4880
|
* @param request - The request {@link CreateTokenRequest}
|
|
4827
4881
|
* @returns A Promise of Token
|
|
@@ -4839,7 +4893,7 @@ let API$q = class API extends API$x {
|
|
|
4839
4893
|
}, unmarshalListTokensResponse$2);
|
|
4840
4894
|
|
|
4841
4895
|
/**
|
|
4842
|
-
* Get a list of tokens
|
|
4896
|
+
* Get a list of tokens in a given Project specified by the Project ID.
|
|
4843
4897
|
*
|
|
4844
4898
|
* @param request - The request {@link ListTokensRequest}
|
|
4845
4899
|
* @returns A Promise of ListTokensResponse
|
|
@@ -4847,7 +4901,7 @@ let API$q = class API extends API$x {
|
|
|
4847
4901
|
listTokens = (request = {}) => enrichForPagination('tokens', this.pageOfListTokens, request);
|
|
4848
4902
|
|
|
4849
4903
|
/**
|
|
4850
|
-
* Retrieve
|
|
4904
|
+
* Retrieve a given token specified by the token ID.
|
|
4851
4905
|
*
|
|
4852
4906
|
* @param request - The request {@link GetTokenRequest}
|
|
4853
4907
|
* @returns A Promise of Token
|
|
@@ -4858,7 +4912,7 @@ let API$q = class API extends API$x {
|
|
|
4858
4912
|
}, unmarshalToken$2);
|
|
4859
4913
|
|
|
4860
4914
|
/**
|
|
4861
|
-
* Delete
|
|
4915
|
+
* Delete a given token specified by the token ID.
|
|
4862
4916
|
*
|
|
4863
4917
|
* @param request - The request {@link DeleteTokenRequest}
|
|
4864
4918
|
*/
|
|
@@ -4868,7 +4922,8 @@ let API$q = class API extends API$x {
|
|
|
4868
4922
|
});
|
|
4869
4923
|
|
|
4870
4924
|
/**
|
|
4871
|
-
* Create a contact point
|
|
4925
|
+
* Create a contact point associated with the default receiver, to receive
|
|
4926
|
+
* alerts.
|
|
4872
4927
|
*
|
|
4873
4928
|
* @param request - The request {@link CreateContactPointRequest}
|
|
4874
4929
|
* @returns A Promise of ContactPoint
|
|
@@ -4886,8 +4941,8 @@ let API$q = class API extends API$x {
|
|
|
4886
4941
|
}, unmarshalListContactPointsResponse);
|
|
4887
4942
|
|
|
4888
4943
|
/**
|
|
4889
|
-
* Get a list of contact points for
|
|
4890
|
-
* Project
|
|
4944
|
+
* Get a list of contact points created for a given Cockpit, specified by the
|
|
4945
|
+
* ID of the Project the Cockpit belongs to.
|
|
4891
4946
|
*
|
|
4892
4947
|
* @param request - The request {@link ListContactPointsRequest}
|
|
4893
4948
|
* @returns A Promise of ListContactPointsResponse
|
|
@@ -4895,7 +4950,7 @@ let API$q = class API extends API$x {
|
|
|
4895
4950
|
listContactPoints = (request = {}) => enrichForPagination('contactPoints', this.pageOfListContactPoints, request);
|
|
4896
4951
|
|
|
4897
4952
|
/**
|
|
4898
|
-
* Delete a contact point
|
|
4953
|
+
* Delete a contact point associated with the default receiver.
|
|
4899
4954
|
*
|
|
4900
4955
|
* @param request - The request {@link DeleteContactPointRequest}
|
|
4901
4956
|
*/
|
|
@@ -4907,7 +4962,8 @@ let API$q = class API extends API$x {
|
|
|
4907
4962
|
});
|
|
4908
4963
|
|
|
4909
4964
|
/**
|
|
4910
|
-
* Enable the sending of managed alerts for
|
|
4965
|
+
* Enable the sending of managed alerts for a given Cockpit, specified by the
|
|
4966
|
+
* ID of the Project the Cockpit belongs to.
|
|
4911
4967
|
*
|
|
4912
4968
|
* @param request - The request {@link EnableManagedAlertsRequest}
|
|
4913
4969
|
*/
|
|
@@ -4919,7 +4975,8 @@ let API$q = class API extends API$x {
|
|
|
4919
4975
|
});
|
|
4920
4976
|
|
|
4921
4977
|
/**
|
|
4922
|
-
* Disable the sending of managed alerts for
|
|
4978
|
+
* Disable the sending of managed alerts for a given Cockpit, specified by the
|
|
4979
|
+
* ID of the Project the Cockpit belongs to.
|
|
4923
4980
|
*
|
|
4924
4981
|
* @param request - The request {@link DisableManagedAlertsRequest}
|
|
4925
4982
|
*/
|
|
@@ -4931,7 +4988,8 @@ let API$q = class API extends API$x {
|
|
|
4931
4988
|
});
|
|
4932
4989
|
|
|
4933
4990
|
/**
|
|
4934
|
-
*
|
|
4991
|
+
* Send a test alert to make sure your contact points get notified when an
|
|
4992
|
+
* actual alert is triggered.
|
|
4935
4993
|
*
|
|
4936
4994
|
* @param request - The request {@link TriggerTestAlertRequest}
|
|
4937
4995
|
*/
|
|
@@ -4943,8 +5001,8 @@ let API$q = class API extends API$x {
|
|
|
4943
5001
|
});
|
|
4944
5002
|
|
|
4945
5003
|
/**
|
|
4946
|
-
* Create a Grafana user for your Cockpit's Grafana
|
|
4947
|
-
*
|
|
5004
|
+
* Create a Grafana user for your Cockpit's Grafana. Make sure you save the
|
|
5005
|
+
* automatically-generated password and the Grafana user ID.
|
|
4948
5006
|
*
|
|
4949
5007
|
* @param request - The request {@link CreateGrafanaUserRequest}
|
|
4950
5008
|
* @returns A Promise of GrafanaUser
|
|
@@ -4962,8 +5020,7 @@ let API$q = class API extends API$x {
|
|
|
4962
5020
|
}, unmarshalListGrafanaUsersResponse);
|
|
4963
5021
|
|
|
4964
5022
|
/**
|
|
4965
|
-
* Get a list of Grafana users
|
|
4966
|
-
* Grafana instance.
|
|
5023
|
+
* Get a list of all Grafana users created in your Cockpit's Grafana.
|
|
4967
5024
|
*
|
|
4968
5025
|
* @param request - The request {@link ListGrafanaUsersRequest}
|
|
4969
5026
|
* @returns A Promise of ListGrafanaUsersResponse
|
|
@@ -4971,8 +5028,8 @@ let API$q = class API extends API$x {
|
|
|
4971
5028
|
listGrafanaUsers = (request = {}) => enrichForPagination('grafanaUsers', this.pageOfListGrafanaUsers, request);
|
|
4972
5029
|
|
|
4973
5030
|
/**
|
|
4974
|
-
* Delete a Grafana user from
|
|
4975
|
-
* Project
|
|
5031
|
+
* Delete a Grafana user from your Cockpit's Grafana, specified by the ID of
|
|
5032
|
+
* the Project the Cockpit belongs to, and the ID of the Grafana user.
|
|
4976
5033
|
*
|
|
4977
5034
|
* @param request - The request {@link DeleteGrafanaUserRequest}
|
|
4978
5035
|
*/
|
|
@@ -4984,8 +5041,8 @@ let API$q = class API extends API$x {
|
|
|
4984
5041
|
});
|
|
4985
5042
|
|
|
4986
5043
|
/**
|
|
4987
|
-
* Reset a Grafana user
|
|
4988
|
-
* the Grafana user
|
|
5044
|
+
* Reset the password of a Grafana user, specified by the ID of the Project
|
|
5045
|
+
* the Cockpit belongs to, and the ID of the Grafana user.
|
|
4989
5046
|
*
|
|
4990
5047
|
* @param request - The request {@link ResetGrafanaUserPasswordRequest}
|
|
4991
5048
|
* @returns A Promise of GrafanaUser
|
|
@@ -11521,7 +11578,7 @@ let API$k = class API extends API$x {
|
|
|
11521
11578
|
pageOfListPolicies = (request = {}) => this.client.fetch({
|
|
11522
11579
|
method: 'GET',
|
|
11523
11580
|
path: `/iam/v1alpha1/policies`,
|
|
11524
|
-
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
|
|
11581
|
+
urlParams: urlParams(['application_ids', request.applicationIds], ['editable', request.editable], ['group_ids', request.groupIds], ['no_principal', request.noPrincipal], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['policy_ids', request.policyIds], ['policy_name', request.policyName], ['tag', request.tag], ['user_ids', request.userIds])
|
|
11525
11582
|
}, unmarshalListPoliciesResponse);
|
|
11526
11583
|
|
|
11527
11584
|
/**
|
|
@@ -11660,7 +11717,7 @@ let API$k = class API extends API$x {
|
|
|
11660
11717
|
pageOfListAPIKeys = (request = {}) => this.client.fetch({
|
|
11661
11718
|
method: 'GET',
|
|
11662
11719
|
path: `/iam/v1alpha1/api-keys`,
|
|
11663
|
-
urlParams: urlParams(['access_key', request.accessKey], ['bearer_id', request.bearerId], ['bearer_type', request.bearerType], ['description', request.description], ['editable', request.editable], ['expired', request.expired], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
11720
|
+
urlParams: urlParams(['access_key', request.accessKey], ['access_keys', request.accessKeys], ['bearer_id', request.bearerId], ['bearer_type', request.bearerType], ['description', request.description], ['editable', request.editable], ['expired', request.expired], ['order_by', request.orderBy], ['organization_id', request.organizationId ?? this.client.settings.defaultOrganizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ...Object.entries(resolveOneOf([{
|
|
11664
11721
|
param: 'application_id',
|
|
11665
11722
|
value: request.applicationId
|
|
11666
11723
|
}, {
|
|
@@ -12254,7 +12311,8 @@ const unmarshalServerMaintenance = data => {
|
|
|
12254
12311
|
throw new TypeError(`Unmarshalling the type 'ServerMaintenance' failed as data isn't a dictionary.`);
|
|
12255
12312
|
}
|
|
12256
12313
|
return {
|
|
12257
|
-
reason: data.reason
|
|
12314
|
+
reason: data.reason,
|
|
12315
|
+
startDate: unmarshalDate(data.start_date)
|
|
12258
12316
|
};
|
|
12259
12317
|
};
|
|
12260
12318
|
const unmarshalVolumeServer = data => {
|
|
@@ -13434,7 +13492,8 @@ const marshalServerLocation = (request, defaults) => ({
|
|
|
13434
13492
|
zone_id: request.zoneId
|
|
13435
13493
|
});
|
|
13436
13494
|
const marshalServerMaintenance = (request, defaults) => ({
|
|
13437
|
-
reason: request.reason
|
|
13495
|
+
reason: request.reason,
|
|
13496
|
+
start_date: request.startDate
|
|
13438
13497
|
});
|
|
13439
13498
|
const marshalSetServerRequest = (request, defaults) => ({
|
|
13440
13499
|
allowed_actions: request.allowedActions !== undefined ? request.allowedActions : undefined,
|
|
@@ -16397,8 +16456,10 @@ const unmarshalJobRun = data => {
|
|
|
16397
16456
|
throw new TypeError(`Unmarshalling the type 'JobRun' failed as data isn't a dictionary.`);
|
|
16398
16457
|
}
|
|
16399
16458
|
return {
|
|
16459
|
+
command: data.command,
|
|
16400
16460
|
cpuLimit: data.cpu_limit,
|
|
16401
16461
|
createdAt: unmarshalDate(data.created_at),
|
|
16462
|
+
environmentVariables: data.environment_variables,
|
|
16402
16463
|
errorMessage: data.error_message,
|
|
16403
16464
|
exitCode: data.exit_code,
|
|
16404
16465
|
id: data.id,
|
|
@@ -16445,6 +16506,11 @@ const marshalCreateJobDefinitionRequest = (request, defaults) => ({
|
|
|
16445
16506
|
name: request.name || randomName('job'),
|
|
16446
16507
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
16447
16508
|
});
|
|
16509
|
+
const marshalStartJobDefinitionRequest = (request, defaults) => ({
|
|
16510
|
+
command: request.command,
|
|
16511
|
+
environment_variables: request.environmentVariables,
|
|
16512
|
+
replicas: request.replicas
|
|
16513
|
+
});
|
|
16448
16514
|
const marshalUpdateJobDefinitionRequestCronScheduleConfig = (request, defaults) => ({
|
|
16449
16515
|
schedule: request.schedule,
|
|
16450
16516
|
timezone: request.timezone
|
|
@@ -16541,7 +16607,7 @@ let API$f = class API extends API$x {
|
|
|
16541
16607
|
* @returns A Promise of JobRun
|
|
16542
16608
|
*/
|
|
16543
16609
|
startJobDefinition = request => this.client.fetch({
|
|
16544
|
-
body:
|
|
16610
|
+
body: JSON.stringify(marshalStartJobDefinitionRequest(request, this.client.settings)),
|
|
16545
16611
|
headers: jsonContentHeaders$e,
|
|
16546
16612
|
method: 'POST',
|
|
16547
16613
|
path: `/serverless-jobs/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/job-definitions/${validatePathParam('jobDefinitionId', request.jobDefinitionId)}/start`
|
|
@@ -17285,7 +17351,7 @@ let API$e = class API extends API$x {
|
|
|
17285
17351
|
_getClusterKubeConfig = request => this.client.fetch({
|
|
17286
17352
|
method: 'GET',
|
|
17287
17353
|
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/kubeconfig`,
|
|
17288
|
-
urlParams: urlParams(['dl', 1]),
|
|
17354
|
+
urlParams: urlParams(['dl', 1], ['redacted', request.redacted]),
|
|
17289
17355
|
responseType: 'blob'
|
|
17290
17356
|
});
|
|
17291
17357
|
|
|
@@ -24159,6 +24225,7 @@ const marshalEphemeralPolicy = (request, defaults) => ({
|
|
|
24159
24225
|
const marshalCreateSecretRequest = (request, defaults) => ({
|
|
24160
24226
|
description: request.description,
|
|
24161
24227
|
ephemeral_policy: request.ephemeralPolicy !== undefined ? marshalEphemeralPolicy(request.ephemeralPolicy) : undefined,
|
|
24228
|
+
is_protected: request.isProtected,
|
|
24162
24229
|
name: request.name,
|
|
24163
24230
|
path: request.path,
|
|
24164
24231
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -24744,7 +24811,7 @@ let API$6 = class API extends API$x {
|
|
|
24744
24811
|
pageOfListDatabases = (request = {}) => this.client.fetch({
|
|
24745
24812
|
method: 'GET',
|
|
24746
24813
|
path: `/serverless-sqldb/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/databases`,
|
|
24747
|
-
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
24814
|
+
urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize], ['project_id', request.projectId ?? this.client.settings.defaultProjectId])
|
|
24748
24815
|
}, unmarshalListDatabasesResponse);
|
|
24749
24816
|
|
|
24750
24817
|
/**
|
|
@@ -24803,7 +24870,7 @@ let API$6 = class API extends API$x {
|
|
|
24803
24870
|
pageOfListDatabaseBackups = request => this.client.fetch({
|
|
24804
24871
|
method: 'GET',
|
|
24805
24872
|
path: `/serverless-sqldb/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups`,
|
|
24806
|
-
urlParams: urlParams(['database_id', request.databaseId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize])
|
|
24873
|
+
urlParams: urlParams(['database_id', request.databaseId], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize], ['project_id', request.projectId])
|
|
24807
24874
|
}, unmarshalListDatabaseBackupsResponse);
|
|
24808
24875
|
|
|
24809
24876
|
/**
|
|
@@ -25252,6 +25319,16 @@ const unmarshalDomainLastStatusDkimRecord = data => {
|
|
|
25252
25319
|
status: data.status
|
|
25253
25320
|
};
|
|
25254
25321
|
};
|
|
25322
|
+
const unmarshalDomainLastStatusDmarcRecord = data => {
|
|
25323
|
+
if (!isJSONObject(data)) {
|
|
25324
|
+
throw new TypeError(`Unmarshalling the type 'DomainLastStatusDmarcRecord' failed as data isn't a dictionary.`);
|
|
25325
|
+
}
|
|
25326
|
+
return {
|
|
25327
|
+
error: data.error,
|
|
25328
|
+
lastValidAt: unmarshalDate(data.last_valid_at),
|
|
25329
|
+
status: data.status
|
|
25330
|
+
};
|
|
25331
|
+
};
|
|
25255
25332
|
const unmarshalDomainLastStatusSpfRecord = data => {
|
|
25256
25333
|
if (!isJSONObject(data)) {
|
|
25257
25334
|
throw new TypeError(`Unmarshalling the type 'DomainLastStatusSpfRecord' failed as data isn't a dictionary.`);
|
|
@@ -25268,6 +25345,7 @@ const unmarshalDomainLastStatus = data => {
|
|
|
25268
25345
|
}
|
|
25269
25346
|
return {
|
|
25270
25347
|
dkimRecord: data.dkim_record ? unmarshalDomainLastStatusDkimRecord(data.dkim_record) : undefined,
|
|
25348
|
+
dmarcRecord: data.dmarc_record ? unmarshalDomainLastStatusDmarcRecord(data.dmarc_record) : undefined,
|
|
25271
25349
|
domainId: data.domain_id,
|
|
25272
25350
|
domainName: data.domain_name,
|
|
25273
25351
|
spfRecord: data.spf_record ? unmarshalDomainLastStatusSpfRecord(data.spf_record) : undefined
|