-
Notifications
You must be signed in to change notification settings - Fork 188
/
storage_accounts_blob_service_spec_arm_types_gen.go
141 lines (108 loc) · 6.58 KB
/
storage_accounts_blob_service_spec_arm_types_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20230101
import "github.com/Azure/azure-service-operator/v2/pkg/genruntime"
type StorageAccounts_BlobService_Spec_ARM struct {
Name string `json:"name,omitempty"`
// Properties: The properties of a storage account’s Blob service.
Properties *StorageAccounts_BlobService_Properties_Spec_ARM `json:"properties,omitempty"`
}
var _ genruntime.ARMResourceSpec = &StorageAccounts_BlobService_Spec_ARM{}
// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01"
func (service StorageAccounts_BlobService_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
}
// GetName returns the Name of the resource
func (service *StorageAccounts_BlobService_Spec_ARM) GetName() string {
return service.Name
}
// GetType returns the ARM Type of the resource. This is always "Microsoft.Storage/storageAccounts/blobServices"
func (service *StorageAccounts_BlobService_Spec_ARM) GetType() string {
return "Microsoft.Storage/storageAccounts/blobServices"
}
type StorageAccounts_BlobService_Properties_Spec_ARM struct {
// AutomaticSnapshotPolicyEnabled: Deprecated in favor of isVersioningEnabled property.
AutomaticSnapshotPolicyEnabled *bool `json:"automaticSnapshotPolicyEnabled,omitempty"`
// ChangeFeed: The blob service properties for change feed events.
ChangeFeed *ChangeFeed_ARM `json:"changeFeed,omitempty"`
// ContainerDeleteRetentionPolicy: The blob service properties for container soft delete.
ContainerDeleteRetentionPolicy *DeleteRetentionPolicy_ARM `json:"containerDeleteRetentionPolicy,omitempty"`
// Cors: Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no
// CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the
// Blob service.
Cors *CorsRules_ARM `json:"cors,omitempty"`
// DefaultServiceVersion: DefaultServiceVersion indicates the default version to use for requests to the Blob service if an
// incoming request’s version is not specified. Possible values include version 2008-10-27 and all more recent versions.
DefaultServiceVersion *string `json:"defaultServiceVersion,omitempty"`
// DeleteRetentionPolicy: The blob service properties for blob soft delete.
DeleteRetentionPolicy *DeleteRetentionPolicy_ARM `json:"deleteRetentionPolicy,omitempty"`
// IsVersioningEnabled: Versioning is enabled if set to true.
IsVersioningEnabled *bool `json:"isVersioningEnabled,omitempty"`
// LastAccessTimeTrackingPolicy: The blob service property to configure last access time based tracking policy.
LastAccessTimeTrackingPolicy *LastAccessTimeTrackingPolicy_ARM `json:"lastAccessTimeTrackingPolicy,omitempty"`
// RestorePolicy: The blob service properties for blob restore policy.
RestorePolicy *RestorePolicyProperties_ARM `json:"restorePolicy,omitempty"`
}
// The blob service properties for change feed events.
type ChangeFeed_ARM struct {
// Enabled: Indicates whether change feed event logging is enabled for the Blob service.
Enabled *bool `json:"enabled,omitempty"`
// RetentionInDays: Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is
// 146000 days (400 years). A null value indicates an infinite retention of the change feed.
RetentionInDays *int `json:"retentionInDays,omitempty"`
}
// Sets the CORS rules. You can include up to five CorsRule elements in the request.
type CorsRules_ARM struct {
// CorsRules: The List of CORS rules. You can include up to five CorsRule elements in the request.
CorsRules []CorsRule_ARM `json:"corsRules"`
}
// The service properties for soft delete.
type DeleteRetentionPolicy_ARM struct {
// AllowPermanentDelete: This property when set to true allows deletion of the soft deleted blob versions and snapshots.
// This property cannot be used blob restore policy. This property only applies to blob service and does not apply to
// containers or file share.
AllowPermanentDelete *bool `json:"allowPermanentDelete,omitempty"`
// Days: Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and
// the maximum value can be 365.
Days *int `json:"days,omitempty"`
// Enabled: Indicates whether DeleteRetentionPolicy is enabled.
Enabled *bool `json:"enabled,omitempty"`
}
// The blob service properties for Last access time based tracking policy.
type LastAccessTimeTrackingPolicy_ARM struct {
// BlobType: An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently
// read only
BlobType []string `json:"blobType"`
// Enable: When set to true last access time based tracking is enabled.
Enable *bool `json:"enable,omitempty"`
// Name: Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
Name *LastAccessTimeTrackingPolicy_Name `json:"name,omitempty"`
// TrackingGranularityInDays: The field specifies blob object tracking granularity in days, typically how often the blob
// object should be tracked.This field is currently read only with value as 1
TrackingGranularityInDays *int `json:"trackingGranularityInDays,omitempty"`
}
// The blob service properties for blob restore policy
type RestorePolicyProperties_ARM struct {
// Days: how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
Days *int `json:"days,omitempty"`
// Enabled: Blob restore is enabled if set to true.
Enabled *bool `json:"enabled,omitempty"`
}
// Specifies a CORS rule for the Blob service.
type CorsRule_ARM struct {
// AllowedHeaders: Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin
// request.
AllowedHeaders []string `json:"allowedHeaders"`
// AllowedMethods: Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the
// origin.
AllowedMethods []CorsRule_AllowedMethods `json:"allowedMethods"`
// AllowedOrigins: Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*"
// to allow all domains
AllowedOrigins []string `json:"allowedOrigins"`
// ExposedHeaders: Required if CorsRule element is present. A list of response headers to expose to CORS clients.
ExposedHeaders []string `json:"exposedHeaders"`
// MaxAgeInSeconds: Required if CorsRule element is present. The number of seconds that the client/browser should cache a
// preflight response.
MaxAgeInSeconds *int `json:"maxAgeInSeconds,omitempty"`
}